How to solve the task