The total amount of Judy’s water bill for the last quarter of the year was \(\$ 40.50\). The bill consisted of a fixed charge of \(\$ 13.50\) plus a charge of \(\$ 0.0075\) per gallon for the water used in the quarter. For how many gallons of water was Judy charged for the quarter?