Answer:
A point on the z-axis has x=0 and y=0, so let the lamp be at L(0,0,z). Since LS=7, LS2=49:
(0+3)2+(0−2)2+(z−4)2=49
9+4+(z−4)2=49
(z−4)2=36
So z−4=6 or z−4=−6, which gives z=10 or z=−2.
The point (0,0,−2) is 2 m below the floor, so it is rejected. The lamp is at (0,0,10), that is, 10 m above the foot of the pole.
Check: LS2=9+4+62=49, so LS=7 m.