take your total, and divide it by the number of items to get the price of a single item. then, once you have the price of the single item, you take the other price, and divide it by the single price of the jeans, to get the total amount of jeans you can buy.