Solve problem #19.