solve P10