Solve subtasks