Where immovable properly is transferred for .consideration by persons having distinct interest therein, the transferors are, in the absence of a contract to the contrary, entitled to share in the consideration equally, where their interests in the property were of equal value, and, where such interests were of unequal value, proportionately to t...