Set up a system of equations and find the solution to this word problem:

Hamburgers are $3 and hotdogs are $2.
If you have $30 to spend, and you need to buy 12 food items, how many of each can you buy?