Two angles are complementary angles if they have a sum of 90 degrees. We could write the expression as below.
angle 1 + angle 2 = 90
7x + 2 + 3x - 2 = 90
solve for x by adding like terms
7x + 3x + 2 - 2 = 90
10x = 90
x = 90/10
x = 9
The value of x is 9