A certain volcano on earth can eject

A certain volcano on earth can eject rocks vertically to a maximum height H.

(a) How high (in terms of If) would these rocks go if a volcano on Mars ejected them with the same initial velocity? The acceleration due to gravity on Mars is 3.71 m/s2, and you can neglect air resistance on both planets.

(b) If the rocks are in the air for a time T on earth, for how long (in terms of n will they be in the air on Mars?