ExxonMobil posted earnings of $8.2 billion for first-quarter 2024, down from $11.4 billion in first-quarter 2023.