how to solve this physics question?