2. Pavel caught a certain number of spiders and clowns. When he counted all the legs, he got the number 176. How many spiders and how many clowns did Pavel catch, if their numbers are even and two-digit? (A spider has 8 legs, and a clown has 6 legs.)
Solution. If $b$ marbles and $p$ clowns are caught, then $6 b+8 p=176$, i.e., $3 b+4 p=88$. From this, we get $p=22-\frac{3}{4} b$. For $b$ and $p$ to be two-digit numbers, it must be true that $8<\frac{3}{4} b<13$, i.e., $10<b \leq 17$, and for $p$ to be an even number, $b$ must be divisible by 8. According to this, $b=16$ and $p=10$.