184. In the apartment, there are 13 people, cats, and flies. Together, they have 42 legs, with each fly having 6 legs. How many people, cats, and flies were there separately? List all possible answers.
Let's denote the number of people, cats, and flies by \( x, y, \) and \( z \) respectively. We obtain the system of equations:

\[
\left\{\begin{array}{l}
x+y+z=13 \\
2 x+4 y+6 z=42
\end{array}\right.
\]

We can simplify the second equation by dividing it by 2:

\[
x+2 y+3 z=21
\]

Subtracting the first equation from this simplified equation, we get:

\[
y+2 z=8
\]

From this, \( y \) must be even. We will now consider the cases \( y=2 \), \( y=4 \), and \( y=6 \).

Answer: \((8 ; 2 ; 3), (7 ; 4 ; 2), (6 ; 6 ; 1)\), where the first element of each triplet represents the number of people, the second the number of cats, and the third the number of flies.