We have;
We need to make 2 possible combinations and yeah, we are free to buy the quantities of two of them, so umm.. let's suppose;
And for the next;
And for the two ordered pair let candy bars be x and chips be y; so there pair must be, (12,18) & (18,12)