A shopkeeper bought and sold two boxes of glassware. He sold the first box for 20% more than it cost him to purchase it. The second box was damaged and the shopkeeper was only able to recover 50% of its cost. His total profit on the sale of both boxes was $90, which was 6% of the total cost he paid for the boxes. How much did he pay for the second box?