In the given data:
Let s gallons is the total quantity of gas thay required.
When they rich at the gas station, they have already 8 gallons of gas
So, now, they need = s- 8 gallons of gas
Morgan needs gas for her jeep, which gets 27 miles per gallon for gas mileage
that means in 1 gallons of gas they travel = 27 miles
Cost of 1 gallon of gas = $1.50
The cost of s miles = $(1.50)s
But she already had 8 gallons,
than cost of 8 gallons = 8(1.50)
So, Now thay have to pay for s -8 gallons : (1.50)s - 8(1.50)
Since the cost on spending on gas is d(s)
So, d(s) = 8(1.50)-(1.50)s
d(s) = s(12-1.50)
d(s)=10.5s
d(s) = 10.5 (s)
he number of miles that Morgan can drive, d(s), as a function of the amount she spends on gas, s is d(s) = 10.5(s)