the solution of the problem 7