You can put this solution on YOUR website! Chicken will have 2 legs and Goat will have 4.
So linear equations for the question is
Let X Chicken and Y Goat
So
X+Y = 13
2X+4Y = 30
Solving both the equation gives X = 11 and Y = 2
Hence Chicken Count = 11 and Goat count is 2.