First, we know all angles of a triangle equal 180. So let's subtract the known one. 180 - 27 = 153. Also, the exterior and interior of any triangle angles = 180. So we can subtract 180 from 56 and subtract that result from 153: 180 - 56 = 124. Now that we have the interior angle for O, we just subtract 124 from 153: 153 - 124 = 29. So P = 29.