Farmer brown can't rember how many animals he has. He knows he the animals have 8 heads and 22 legs all together. How many pigs dose he have

He has 3 animals with 4 legs and 5 animals with 2 legs. However, from your data, I don't know if the 4-legged animals are pigs.

To determine how many pigs Farmer Brown has, we need to solve a system of equations based on the information given. Let's assume the number of pigs is represented by the variable "p".

We know that all the animals together have 8 heads and 22 legs. Since pigs have 1 head and 4 legs, we can set up the following equations:

Equation 1: Total number of heads: p = 8
Equation 2: Total number of legs: (4p) + (legs of other animals) = 22

Since we are only interested in the number of pigs, we can ignore the "legs of other animals" portion in Equation 2 for now. Let's solve for "p" using Equation 1:

p = 8

According to Equation 2, the number of legs of the pigs is 4p. Let's substitute the value of p we just found into Equation 2:

(4p) + (legs of other animals) = 22

(4 * 8) + (legs of other animals) = 22

32 + (legs of other animals) = 22

Now, we need to find out the number of legs of other animals. To do that, we need to calculate the total number of legs subtracting the number of legs of pigs (4p) from the total number of legs (22):

Total number of legs - Number of legs of pigs = Number of legs of other animals

22 - (4 * 8) = Number of legs of other animals

22 - 32 = Number of legs of other animals

-10 = Number of legs of other animals

Uh-oh! It seems we obtained a negative value for the number of legs of other animals, which indicates there might be an error in the problem. Given the information provided, it seems impossible to determine how many pigs Farmer Brown has. Please double-check the problem statement for any missing details or errors.