Rafael sold t-shirts and hats at a festival. He made a $3 profit for each t-shirt he sold. He also made a profit $45 from selling hats. If he made a total profit of $93, how many t-shirts did he sell?