solve problem 13