As we can see, one of its angles is a right angle, and therefore it is a right triangle. This allows us to use Triangle Angle-Sum Theorem, which states that acute angles of a right triangle are complementary. In this case, it means that 2x and (x-6) add up to 90.
2x+(x-6)=90
By solving this equation, we can find the value of x.