The selling price of a pair of pants is 34 dollars . If the store paid 8 dollars less for the pants , find the price that the store paid , in dollars .