If property given by will to persons other than the residuary devisees is sold for the payment of debts or expenses or family allowances, all the devisees shall contribute in proportion to their respective interests to the devisee whose devise has been sold, and the court, when distribution is made, shall settle the amount of the several liabilities and order the amount each person is liable to contribute to be withheld from that person's distributive share for the purpose of the contribution.
NRS 151.167