Solving for the price of an item