A school is organizing a cookout where hotdogs will be served. The hotdogs come in small packs and large packs. Each small pack
has 4 hotdogs and each large pack has 24 hotdogs. The school bought twice as many small packs as large packs, which altogether had 160 hotdogs. Determine the number of small packs purchased and the number of large packs purchased.