Leviticus 25:15

25:15 You may buy it from your fellow citizen according to the number of years since the last jubilee; he may sell it to you according to the years of produce that are left.

Leviticus 27:27

27:27 If, however, it is among the unclean animals, he may ransom it according to its conversion value and must add one fifth to it, but if it is not redeemed it must be sold according to its conversion value.