You should buy a used car, generally in the 2-4 year old range.
I have calculated your total financed price of about $17,500, and would guess this includes all the tax, le, and license stuff.
You haven't gotten screwed at all, if the car is in decent shape and you plan on keeping it for a while.
The number one thing about owning a car that the vast majority of the buying public doesn't know:
The largest cost of owning/operating a car is the REPLACEMENT cost. Not gas, not maintenance, not nuthin' else. Replacement.
Do the math:
You will have paid (roughly) $23,000 for this car when all is said and done.
If you decide to sell it in 6 years, then you have to pay another chunk of cash for THAT future car.
But, look at that $23,000 over the six years you will own it, assuming you sell it then, and the trade in value is minimal.
23/6= 3,900 per year in acquisition costs.
Gas, as outrageous as it is, still comes in behind this cost. 3900 divided by $4 per gallon, muliplied by assumed miliage rate of 30 miles per gallon is 29000 miles worth of gas. If you put less than 29k miles per year on your car, even with gas at four bucks a gallon, the replacement/acquisition costs of this car STILL are bigger than gas costs.
The real answer to reducing the costs of owning/operating a car, is simply to hold on to that car for longer, generally about 10 years.
After you get this sucker paid off, yes, it will be old, and require a good chunk of maintenance, but odds are the amounts sunk into repair will STILL be less than buying a new car.
New cars do make sense if you plan on holding on to them for a long time, say 10+ years. Used cars tend to be cheaper if your intended holding time is less.