solve problem 19