how to solve age problem easier?