Horizontal range =2uxuyg
Let the initial horizontal and vertical components of the velocity of the shot be u and v, respectively, w.r.t. platform.
R1=2(u+vP)vg, platform moving forward
R2=2(u−vP)Vg, platform moving backward
R1+R2=4uvg
and R1−R2=4vPvg
Now (R1−R2)2=16v2pv2g2
and (R1−R2)2R1+R2=4v2Pg×vu
or vu=g4v2p(R1−R2)2(R1+R2)
Elevation of gun
α=tan−1(vu)=tan−1[g4v2p×(R1−R2)2(R1+R2)].