Two balls, first with the mass $m_1$ and the second with the mass $m_2$ are falling from the heigh $h$. Suppose all the collisions are perfectly elastic and do not consider the size of the balls. $m_1 < m_2$ and ball with the mass $m_1$ is on the top.
What height $h_1$ will the ball with the mass $m_1$ jump to and what height $h_2$ will the ball with the mass $m_1$ jump to?
I think equations as $(m_1+m_2)gh=m_1gh_1+m_2gh_2$ and $(m_1+m_2)v=m_1v_1+m_2v_2$, where $v$ is the velocity of both balls falling, are correct, but I have no idea how to get $h_1$ and $h_2$ independent of each other.
It seems to me, like here is some common operation or relation, that I just don't know, that I have never seen or don't remember... Please don't describe me "you have to do this and this" and "think about what happen when...". I need to see the progress. I need to see these equations and what's happening.