Miles paid $5824, including 4% sales tax, for an out-of-state purchase of a car. In order to calculate the amount of sales tax he owes in his state, he must first determine the price of the car without sales tax. How much did the car cost before sales tax?