Let ∠PAQ=α⇒tanα=19
And ∠PAO=β⇒tanβ=45
Now in △PAO
POOA=tanβ=45 ...(1)
And △QAO
QAOA=tan(α+β)⇒h+POOA=tanα+tanβ1−tanαtanβ⇒h+OQOA=1
Substituting value from (1)
OQOA=1−45=15
Therefore if OA=100⇒OQ=20⇒h=80AP=√OA2+OQ2=20√41
Hence
Height of flagstaff OQ=20m
Hegiht of tower h=80m
Distance of point from foot of tower OA=100m
Distance of point from top of tower AP=20√41m