Let the number of games Amatullah’s basketball team played last season be represented by \( x \).
According to the problem, we know that:
\[ 21 = \frac{1}{3}x + 12 \]
To solve for \( x \), first, we can subtract 12 from both sides:
\[ 21 - 12 = \frac{1}{3}x \]
This simplifies to:
\[ 9 = \frac{1}{3}x \]
Next, to eliminate the fraction, multiply both sides by 3:
\[ 3 \cdot 9 = x \]
This gives us:
\[ x = 27 \]
Thus, the number of games Amatullah's team played last season is 27 games.
So, the correct response is 27 games.