To find the rate of change in the cost of gas per gallon, you can calculate the slope of the line connecting the two points (4, 15) and (8, 30). The slope (rate of change) is calculated using the formula:
\[ \text{slope} = \frac{y_2 - y_1}{x_2 - x_1} \]
Here, \((x_1, y_1) = (4, 15)\) and \((x_2, y_2) = (8, 30)\).
Substituting the coordinates into the formula gives:
\[ \text{slope} = \frac{30 - 15}{8 - 4} = \frac{15}{4} = 3.75 \]
Thus, the rate of change in the cost of gas is \(3.75\) dollars per gallon.