The position of the fly is shown as cross in the diagram below
The distance of the fly from the ceiling is given as
We need to work out the distance

to be able to work out the value of

by the Pythagoras theorem



by Pythagoras theorem


The distance of the fly from the point P is 4m