That completely depends on the value of 'p'.
Every different value of 'p' gives a different answer.
90 + 90 + 60 = 240
390
54 + 560 + 90 = 704
90 minus 75 =15 therefore 15 + 75 = 90
6 + 90 = 96
200
190
90
90
120
1 100 + 50 + 90 + 45 _____ 285
80+90+100=170+100=270