Legally married, and all the kids are beneficiaries. The first wife is a type of living relationship, as there was no marriage and the woman did not divorce her previous husband, so I don’t think she has any right to inheritance. But she can claim it with her previous husband, as legally they are not divorced. I think 4 children can also claim inheritance from the first woman’s husband, as Indian courts consider the child from parents even if they are born of extramarital affairs.