Capital Gain for two residential property under section 54

Ankur Singhal (Student) (34 Points)

08 August 2023  
Mr X Sold two residential property in 2023-24 & capital gain from two property are following:
house 1 - 45 Lakhs
house 2 - 20 Lakhs
Now, he has purchased the new residential property for Rs 60 lakhs in 2023-24.

How to claim the benefit of exemption u/s 54 of Income tax act in this case?
Can he claim exemption u/s 54 for both property. ?