Solving P3

.