add solutions for section P