Solved problem 18.