While he was at the grocery​ store, Raymond purchased a box of candy for himself. On the way back to the​ dorm, he ate 1/2 of the candy. As he was putting away the​ groceries, he ate 1/3 of what was left. There are now 2 chocolates left in the box. How many chocolates were in the box to begin​ with?