solve problem 21