I have the equation,

2 2 2
1/2 m1 Vf1 + 1/2 m2 vf2 = 1/2 m1 V01

you need to plug into the above equation

Vf2 = m1(Vo1-Vf1)/m2

do it, and do the algebra. It is messy, but you can do it.