A bathtub is partially filled with g gallons of water.
Alice adds 10 more gallons of water to the tub,
making it 50% full. If Marco then adds 40 more
gallons of water, the tub will be 100% full. What is
the value of g?
A. 20
B. 24
C. 30
D. 40