Answer:
below
Explanation:
To write an equation relating the number of gallons of gas Eric has left in his tank (G) to the total distance he has traveled (D), we need to consider that his car uses up one gallon of gas every 30 miles.
Let's assume that Eric has traveled a distance of D miles. Since his car uses up one gallon of gas every 30 miles, the number of gallons of gas used can be calculated by dividing D by 30. Therefore, the number of gallons of gas remaining in his tank can be calculated by subtracting the gallons used from the initial amount of gas he had (18 gallons).
The equation relating G to D can be written as:
G = 18 - (D/30)
This equation represents a linear relationship between G and D, where G is the dependent variable (number of gallons of gas remaining) and D is the independent variable (total distance traveled).
To graph this equation, we can use a Cartesian coordinate system with G on the y-axis and D on the x-axis. The graph will be a straight line with a negative slope, intersecting the y-axis at 18.