Solve problem 12,Allen