Marge purchased x bicycle helmets and y tire pumps. Each helmet cost $12.00 and each pump cost $8.00. She purchased a total of 18 items and spent $176.00. How many helmets did Marge buy?