The scenario described, where both the total momentum and total kinetic energy remain constant after the collision, indicates that the collision is perfectly elastic.
In a perfectly elastic collision, both momentum and kinetic energy are conserved. Therefore, the correct answer is:
b. perfectly elastic