Finding the price of each ticket