How to solve this problem?