eric sold t-shirts and hats at a festival. his total profit was $125. he made a $5 profit for each t-shirt he sold. he also made a profit of $40 from selling hats. how many t-shirts did he sell?