Because the angles in the given diagram form a right angle, we know that they are complementary.
Since the angles are complementary, we know that the sum of their measures should equal 90^(∘). We can solve for x by creating an equation using the values for the two angles and their sum.