In ΔYRQ, we have
tan45° = QR/YR
1 = x/YR
YR = x
[because YR = XP] — (1)
Now In ΔXPQ
we have
tan60° = PQ/PX
√3 = (x + 40)/x (from equation 1)
x(√3 - 1) = 40
x = 40/(√3 - 1)
x = 40/1.73 - 1
x = 40/0.73
x = 54.79m
So, height of the tower, PQ = x + 40 = 54.79 + 40 = 94.79m.
Distance PX = 54.79m.