Capital Gain - Clarification- req

Sri Ranjini Venkatachalapathy (CA) (50 Points)

03 October 2022  
A House is written as Settlement deed by my grandfather to 6 of his grandchildren name on Dec, 2003. Hence there is no sale value.
Now, we sold the property on for Aug, 2022 for 30 Lakhs and the sale value was divided among 6 members and each received 5 lakhs. The same is also mentioned in the same deed.
Kindly help me to calculate capital gain and also if I invest in land and not any house can I claim Exemption for the same.