rs; and the net proceeds of such sale, after deducting the expenses thereof and such amount as may be required for the payment of debts, legacies and charges of administration, in consequence of a deficiency in the personal property, shall be paid over to the person or persons who would have been entitled to such real estate and in the proportions to which they would have been entitled had it not