Solve p231