Solve problem 14