Question 925454
Hints:


x = number of sheep
y = number of chickens


15 animals total: x+y = 15
40 legs in all: 4x+2y = 40


So you need to solve this system


{{{system(x+y = 15,4x+2y = 40)}}}


it might help to solve equation 1 for y to get {{{y = 15-x}}} and then plug that into equation 2 to get {{{4x+2(15-x)=40}}}. Solve for x and then use that to find y.