Yes. There is a simulation distributed with EJS which can be adjusted to exactly what you want.
So I modified the example and change the parameter to fit with your request.
The ratio for the highest height to the initial height will depend on the ratio of the mas.
Initially, the mass ratio is 2.0 and the ratio is close to what you have expect (but not quite the same).
You can adjust the mass ratio and see what will happen!
You can also change the number of particles.
And what if the mass ratio is less than 1.0? Ask yourself before you hit play!
Have fun!

VIEW or DOWNLOAD ejs xml source
then click to translate strings for selected locale.

Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop.