We want to know how many children and adults went to the zoo. In this case, we will call by a to the number of adults, and by c to the number of children.
Since there were 243 people in total, we have that:
[tex]a+c=243[/tex]And as the cost for adult is $5 and, $3 for each child, we obtain:
[tex]5a+3c=823[/tex]For finding the number of children and adults that went to the zoo, we have to solve tre system:
[tex]\begin{cases}a+c=243 \\ 5a+3c=823\end{cases}[/tex]We will solve it by substitution. On the first equation, we solve for c:
[tex]c=243-a[/tex]and we replace it onto the second equation:
[tex]5a+3(243-a)=823[/tex]And we solve for a:
[tex]\begin{gathered} 5a+729-3a=823 \\ 2a=823-729 \\ 2a=94 \\ a=\frac{94}{2}=47 \end{gathered}[/tex]This means that the number of adults is 47. Now, we replace on the first equation, and we get:
[tex]\begin{gathered} c=243-a \\ =243-47 \\ =196 \end{gathered}[/tex]Thus, the number of adults that went to the zoo was 47, and the number of children was 196.