a school is organizing a cookout where hotdogs will be served. the hotdogs come in small packs and large packs. each small pack 8 hotdogs and each large pack has 18 hotdogs . the school bought 7 packs of hotdogs that have a total of 86 hotdogs. determine the number of small packs purchased and the number of large packs purchased