Final answer:
Alan will have 0.5X + 15 chocolate bars after his transactions, a misprint in the given options. The cost to fill Stewart's gas tank is (G - 2) * C, corresponding to GC - 2C dollars.
Step-by-step explanation:
The question involves determining the number of chocolate bars Alan has after a series of transactions and calculating the cost to fill up a car's gas tank, both in terms of initially given variables. For Alan's chocolate bars, we start with X bars and add 10, resulting in X + 10 bars. Halving this amount gives us 0.5(X + 10), and after receiving another 10 bars, we get 0.5X + 5 + 10, which simplifies to 0.5X + 15. Thus, the correct option is b) 0.5X + 20 (incorrectly listed in the prompt).
For Stewart's car, we first need to find out how many gallons are needed to fill the tank from the current level, which is G - 2 gallons. Multiplying this by the cost per gallon gives us (G - 2) * C. Therefore, the correct option is b) GC - 2C.