Solve p27