A cart of mass

m1 = 12 kg
slides down a frictionless ramp and is made to collide with a second cart of mass
m2 = 19 kg,
which then heads into a vertical loop of radius 0.23 m. Determine the height h from which cart 1 would need to start to make sure that cart 2 completes the loop without leaving the track. Assume an elastic collision.