2W 3504 then IB 1007 at Madrid
Punta Cana → Madrid → Málaga
Timetable, Madrid time
10:052W 3504 from Punta Cana at the gate
19:40IB 1007 to Málaga leaves the gate
9 h 35 apart on the timetable
The last days
2W 3504 and IB 1007 weren’t both flown 15 min to 12 h apart in the last 21 days.
Statistics from past flights, not live flight information. Always check times and your connection with your airline, and don’t base travel or booking decisions on these numbers.