how to solve half life problems