I bought a box of chocolates and ate 1/3 of it and then ate 1/2 of what was left I had 7 left over, how many chocolate did the box start out with?

1/3 x = 7

x = 21