UA 3905 then UA 5574 at Houston
Cancún → Houston → Memphis
Timetable, Houston time
13:29UA 3905 from Cancún at the gate
07:20UA 5574 to Memphis leaves the gate
17 h 51 apart on the timetable, overnight
UA 5574 leaves 17 h 51 after UA 3905 arrives on the timetable: more than half a day, so not a connection we count.