first solution to p22