how to solve the problem