a grocery store has small bags of peanuts for $3 and large bags of peanuts for 5$. if you buy 12 bags and spend $42 how many of each size bag did you buy