Ah, OK, so your departure is from Valencia.
I would drive one way, train the other.
September
23..Pick up car. Drive to Moraira - stay 2 nights
25..Drive to Granada - stay 3 nights
28..Drive to Ronda - stay 1 night
29.. Drive to Seville - stay 3 nights (return car)
October
2..Train to Cordoba - stay 2 nights
4..Train to Cuenca - stay 1 night
5..Train to Valencia - close to the airport
You can make the vast distance from Cordoba to Cuenca in just over 3 hours, including a comfortable change in Madrid, on the speedy AVE train services.
AVE 2113
Dep 11:56 CORDOBA-CENTRAL (Spain)
Arr 13:40 MADRID-PUERTA DE ATOCHA (Spain)
AVE 5340
Dep 14:10 MADRID-PUERTA DE ATOCHA (Spain)
Arr 15:05 CUENCA FERNANDO ZOBEL (Spain)
Cuenca, with its hanging houses, makes an interesting stop.