A merchandise vendor at a sports arena is given a large uncounted pile of hats and shirts to sell at a game. Hats cost $13.00 each, and shirts sell for $19.00 each. At the end of the night, the vendor realized he forgot to keep track of how many quantities of each item he sold. However, he does know that he sold 65 total items and sold $1,061.00 of merchandise. How many hats did he sell?
Number of hats =