how to solve this problem?