A 80 kg object slides at a 20 degree plane downward at 5m/s. An object 2 collides with object 1 by falling from 7 meter height and they stick together. Final speed of objects?

I know the speeds would be the same. Would momentum equation work to solve this? The perfect inelastic equation does not have height. How do I incorporate height to get final speed of objects.