Arnau is running a luggage shop. A brand-new item priced at 30% above the cost price did not sell well. So he took 39 dollars off the price, and found that the bags sold very well. If the profit for each bag is now 10% of the cost price, what is the cost price (in dollars)?