Answer:
29Kg
Step-by-step explanation:
P1=2Kg
P2=7Kg
P3=31Kg
P3-P1=29Kg
To find P1, P2 and P3 I started assigning the first prime number, 2, to P1 and tried to assign prime numbers to P2 and P3 so that the sum was 40, increasing them at each step.
I was lucky and I got the result after few steps :-)