Problem 20 is similar to problem 16