Site icon Hip-Hop Website Design and Development

How can i automate the price of a product to automatically change based on its sales? [closed]

Say for example, i have product A and product B.
Both products have a initial set price.
If product A sells (x%) more than product B, i want product A to automatically increase in price by a given percentage.
However when product B starts to sell more than product A, i want product B to automatically increase by (x%) and product A to decrease but no less than its initial set price.