For the given question instead of the given order if we take one unit of P2 as its arrival time is 1 and then schedule P1 next we get the same answer,even in the hint they have given as the process which comes first should get first priority instead in this question P2 is completely scheduled first.My approach and the solution given ends up giving the same answer,does this happen for all cases or just happening for this question?