A school is buying hot dogs for a cookout. The hot dogs come in small packs of 10 or large packs of 18. The school bought 6 pack of hotdogs for a total of 76 hot dogs. How many small packs did they buy? How many large packs did they buy.