At first, the comics in a library were placed on 32 shelves with an equal number of comics on each shelf. 3 shelves were removed and the books on these shelves were placed on the remaining shelves. Because of this, the number of comics on each remaining shelf increased by 6. What was the number of comics on each shelf at first?