Solution for problem 65.