The direction of projection of particle is shown in the figure for an observer on trolley An observer on the ground sees the ball rise vertically The maximum height reached by ball as seen from the trolley is:
10−vcos60∘=0
v=20m/s
H=v2sin260∘2g=15m