Abigail is raising money for a school trip by selling bags of chips and packs of cookies. The price of each bag of chips is $1.50 and the price of each pack of cookies is $1.25. Yesterday Abigail made $27 from selling a total of 20 bags of chips and packs of cookies. Determine the number of bags of chips sold and the number of packs of cookies sold.