Solved the sixth problem.