Micheal and his family are at a basketball game. Micheal decides that he is buying. He buys pretzels and sodas. The pretzels cost $3 and the sodas cost $2. His purchase of 5 items totaled $12. How many pretzels and how many sodas did Michael purchase?