Solutions to P4, P5, P6, P7