Sam drives his car at a constant speed. He travels a distance (d) of 15 miles with 1/2 of a gallon of gas (g).

Write an equation in the form of d=rg that represents the relationship between distance (d) and the number of gallons of gas (g), where r is the constant of proportionality.