Suppose there are 2x books in the upper layer and 3x books in the lower layer.
3x-35=2x+35
Solution: x=70
So books are placed on the upper and lower floors: 3x+2x = 3x70+2x70 = 350 (books).
I hope my answer can help you, remember to give a good comment!