Chelsea buys 8 packs of markers. Each pack contains the same number of markers. Chelsea gives 10 markers to her brother. Then she has 54 markers left. How many markers were in each pack?