solve problem 14