Solving p027