Observe that after one pass of quicksort the position of the pivot is same as the position of it in the sorted array.
Sort the array mentally it will be {6,9,11,13,15,17,18,24}
and the given array is {9,6,11,13,18,15,17,24}
So, you will get that that positions of 11,13 and 24 in the given array is same as in the sorted array.
After that check whether all the elements to the left of 11,13 and 24 are less than 11,13 and 24 or not respectively.
Also check whether all the elements to the right of 11,13 and 24 are greater than 11,13 and 24 or not respectively.
You will see that 11,13 and 24 passes this two tests so, 11,13 and 24 can be chosen as pivot.
Hence the answer is 11+13+24 = 48 (Answer)