Not worth getting an 07' since those are the most problematic due to it's the first production year for the 335's. But everything about on your resale value will really depend where you live, how many mileage, accident reports, color combination, if it's a AT or 6MT, exterior condition, interior condition, and mechanical condition of the car.
If everything checks out fine i'm guessing the most you'd get out of the car would be around $18,000 or less. I could be wrong but that's just an estimate.
¹ Photographer ² Bay Area Coder ³ Curb Rash Repairist