AA 9909 then AA 2040 at Phoenix
Salt Lake City → Phoenix → Lagos
Timetable, Phoenix time
14:30AA 9909 from Salt Lake City at the gate
11:40AA 2040 to Lagos leaves the gate
21 h 10 apart on the timetable, overnight
AA 2040 leaves 21 h 10 after AA 9909 arrives on the timetable: more than half a day, so not a connection we count.