solve P50