the solution of the problem 6