Answer is x= 63
Step by step
First I found the supplemental angle to 67, the sum of the angles = 180
180 - 67 = 113
Now that triangle will also equal 180 degrees.
We know 113 and 40
180 - 113 - 40 = 27
So we know the vertical angles are congruent or equal so both are 27.
The triangle also has a 90 degree angle.
So we can find x with 180 - 90 - 27 = 63
See attachment