Elastic Collisions - PHY2 Problem

An object (m1 = 5kg) starting from a height of 5 meters, slides down a frictionless track as shown (first object starts in a vertical position, slides down a curved track, and collides with object 2 in a horizontal position) and collides with a second object (m2 = 10kg). Assume the track is frictionless and the collision is perfectly elastic. When the first object recoils from the collision, what is the max height to which it will slide back up the ramp?

2. Relevant equations

v=d/t

v1=(u1(m1-m2)+2m2u2)/(m1+m2)

v2=(u2(m2-m1)+2m1u1)/(m1+m2)

3. The attempt at a solution

I really dont know how to attempt a solution, i am currently taking physics 1, but my professor gave a physics 2 problem to the students as an 'assessment'. I want to understand this, but am not really sure how to begin.1. The problem statement, all variables and given/known data