How the inheritance will be shared is freely decided by the heirs. The rules established by the inheritance law on…