Solution for P10