Solve the PE20 and PE21