The gains from international trade are shared on the basis of the