The collision is elastic:
In all elastic collisions of that type (unidirectional) the velocity of approach equals the velocity of separation - the collision is elastic even for different masses
e = relative velocity after / relative velocity before
e = 1 for elastic collisions