Angle 1 and angle 2 make a 90 degree angle together, so you know that, combined, they will be equal to 90. You can find x by adding both angles' expressions together and setting them to equal to 90:
x - 12 + 5x = 90
6x - 12 = 90
6x = 102
x = 17
Answer:
x = 17