2W 2502 then UX 5435 at Madrid
Cancún → Madrid → Málaga
Timetable, Madrid time
12:352W 2502 from Cancún at the gate
19:25UX 5435 to Málaga leaves the gate
6 h 50 apart on the timetable
The last days
2W 2502 and UX 5435 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.