Write and solve a system of equations for each situation

Write and solve a system of equations for each situation. Check your answers
A shop has one-pound bags of peanuts for $2 and three-pound bags of peanuts for $5.50. If you buy 5 bags and spend $17, how many of each size bag did you buy?