To model the total number of students (t) in Ms. Garcia's class, we know that two-thirds of the class own pets, which corresponds to 8 students. We can set up the equation as follows:
\[ \frac{2}{3}t = 8 \]
To solve for \( t \), we can multiply both sides of the equation by \( \frac{3}{2} \):
\[ t = 8 \times \frac{3}{2} \]
Calculating that gives:
\[ t = 12 \]
So the total number of students in Ms. Garcia’s class is:
\[ t = 12 \]