Solution for P11.