Explicación paso a paso:
[tex]x = gallinas[/tex]
[tex]y = conejos[/tex]
Ahora según el problema, la suma de cabezas son 48:
[tex]x + y = 48[/tex]
[tex]x = 48 - y[/tex]
patas entre gallina y conejos:
[tex]2x + 4y = 128[/tex]
[tex]2(48 - y) + 4y = 128[/tex]
[tex]96 - 2y + 4y = 128[/tex]
[tex]2y = 128 - 96[/tex]
[tex]2y = 32[/tex]
[tex]y = 16 \: conejos[/tex]
Ahora como ya hallamos la cantidad de conejos, reemplazaremos en la primera ecuacion para hallar las gallinas:
[tex]x + y = 48[/tex]
[tex]x + 16 = 48[/tex]
[tex]x = 48 - 16[/tex]
[tex]x = 32 \: gallinas[/tex]