I have flights upcoming DUB-SJU and SJU-DUB with Aer Lingus and American Airlines. The layover from DUB-SJU is 5h20m and SJU-DUB is 4h33m. Our baggage will be checked through. I know we will need to take the Airtrain from T5 to T8 and vice versa. I think we have enough time but was just looking for confirmation?