hint:

Elastic means that both momentum and kinetic energy are conserved.