Ingrid starts with $n$ chocolates, while Jin and Brian each start with 0 chocolates. Ingrid gives one third of her chocolates to Jin. Jin gives 8 chocolates to Brian and then Jin eats half of her remaining chocolates. Jin now has 5 chocolates. What is the value of $n$ ?
Working backwards, since Jin had 5 chocolates left after eating half of them, she had $2 \times 5=10$ chocolates after giving chocolates to Brian.

Since Jin gave 8 chocolates to Brian and had 10 chocolates after doing this, Jin was given $10+8=18$ chocolates by Ingrid.

Ingrid gave one third of her chocolates to Jin, which means Ingrid started with $n=3 \times 18=54$ chocolates.

ANSWER: 54