From a canon mounted on a wagon at a height H from the ground, a shell is fired horizontally with a velocity v0 m/s with respect to canon. The canon and wagon have a combined mass of M kg and can move freely on the frictionless, horizontal surface. Find the horizontal distance (in metres) between shell and canon, when the shell touches ground.