1, when two layers of books are the same, each layer is 180/2=90.
2. Take six books from the lower level and put them on the upper level. The upper level is 90+6=96 and the lower level is 90-6=84.
Conclusion: At the beginning, there were 96 upper-level books and 84 lower-level books.