Angle of projection =45∘ height of wall =hWe know that.
The equation of trajectory of a projectale,y=xtanθ−2u2cos2θgx2y=xtanθ(1−2u2cos2θ⋅tanθgx)y=xtanθ(1−2u2cos2θ⋅cosθsinθgx)y=xtanθ(1−Rx){∵R=gu2sin2θ}Here, R=d1+d2,x=d1 and y=hSo, h=d1tan45∘(1−d1+d2d1)h=d1(d1+d2d2)h=d1+d2d1d2