At a bookstore, the ratio of the number of erasers to the total number of files and rulers is 2: 3. After 146 erasers were sold, the ratio of the number of erasers to the number of files to the number of rulers was 6:3:7. How many files were there in the bookstore?​