To find the height of the lighthouse, use

to get that h = 14 (the tangent of 45 is 1). Now for the next question, you have to use the height you just solved for to find angle y. Use

and the inverse tangent button on your calculator tells us that the angle is 28.3. Now for the last question, use the supplement of 45 to get that the angle adjacent to y is 135. 180 - 135 - 28.3 = 16.7 That's your x value.