Third conditional in indirect speech
When we report third conditionals, there are no changes in the verb forms:
Tom: If we had booked our flight earlier, it would have been cheaper. (referring to an unreal past situation)
Tom remarked that if they had booked their flight earlier, it would have been cheaper.