sam had 70 erasers and rulers. after giving away 1/3 of his erasers and 10 rulers, he had an equal number of erasers and rulers left. how many erasers did he have in the beginning?