John picked up 2/3 of the books on the shelf. Mario picked up 18 books that were left. How many books were on the shelf to begin with?