To find the total number of students \( t \) in Ms. Garcia's class based on the information given, we know that two-thirds of the class owns a pet and that number is 8 students.
We can set up the equation as follows:
\[ \frac{2}{3}t = 8 \]
To solve for \( t \), we'll 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 12. The complete equation modeling the situation is:
\[ \frac{2}{3}t = 8 \]