Let \( x \) represent the number of cupcakes that JoJo decorates. According to the problem, Darcy decorates 8 cupcakes, which is 2 more than \( \frac{1}{3} \) of the cupcakes JoJo decorates.
We can set up the equation:
\[ 8 = \frac{1}{3}x + 2 \]
Now, let's solve for \( x \):
- Subtract 2 from both sides:
\[ 8 - 2 = \frac{1}{3}x \]
\[ 6 = \frac{1}{3}x \]
- Multiply both sides by 3 to isolate \( x \):
\[ 18 = x \]
Thus, JoJo decorates 18 cupcakes.