Let x by the number of cooler
since each cooler has 25 bottles
then in total we have 25x
there are 10 friend in total to divide the bottles equally
we have 25x/10 this expresses the number of bottles each friend will get
that answers part a) of the question
now for part b)
we are told the friend brought 2 cooler
then we should have 25(2)=50 number of bottles in total
then it goes that each one of the friend will get 5 bottles (50/10)
Done !