Mathematics of Buying and Mathematics of Selling