Elastic means KE and momentum are both conserved during collision. Notice that the two balls do not reach maximum height at the same time.