We have
Let AP=h
As shown in the fig. let D be the position of the temple.
According to the question,
∠PAD=α
∠APD=β
Draw a line
AB=PQ=y
Let BD=x then DQ=h−x
Then,
InΔDAB
tanα=ABBD
tanα=yx.......(1)
InΔDPQ
tanβ=PQDQ
tanβ=yh−x.......(2)
Dividing equation (2) by (1) and we get,
tanβtanα=yh−x×xy
tanβtanα=xh−x
htanβ−xtanβ=xtanα
htanβ=xtanα+xtanβ
x(tanα+tanβ)=htanβ
x=htanβ(tanα+tanβ)
Put the value of x in equation (1) and we get,
y=htanαtanβ(tanα+tanβ)
Hence, the bridge above the top of temple is htanαtanβ(tanα+tanβ) mtr.