Solved problem 24.