I attempted this problem however I highly suspect that my answer is incorrect, any help on how to approach it efficiently will be appreciated. It proceeds as follows:
I bought a box of chocolates for myself last week. However, by the time I got home I had eaten $\frac{7}{8}$ of the chocolates. As I was putting the groceries away, I ate $\frac{2}{3}$ of what was left. There are now 22 chocolates left in the box. How many chocolates were in the box in the beginning?
My Attempt:
Let the original number of chocolates be $x$,
I ate $\frac{7}{8}x$, the number remaining = $\frac{1}{8}x$.
Then I ate $\frac{2}{3}(\frac{1}{8}x)=\frac{1}{12}x$, the number remaining = $\frac{11}{12}x$, it follows that $\frac{11}{12}x=22$, hence $x=24.$