Solved problem 40.