Guys, how to solve this kind of problem?