Mr. Darson bought 6 boxes of nails from a shop. Each box had an equal number of nails. He gave 8 nails to each of his 38 students. He then had 26 nails left. Find the number of nails in each box.