The number of library books in a school increased by 20% after it bought new books in may. The number increased by another 20% after a bookstore donated 300 books in June. Find the number of books in the library before it bought new books in May.