Sa notam cu x -> nr. total gaini ⇒2*x -> nr. total picioare gaini,
respectiv cu y -> nr. total purcei ⇒4*x -> nr. total picioare purcei.
Avem de rezolvat urm. sistem de ecuatii cu necunoscutele x si y:
[tex] \left \{ {{x+y=40} \atop {2*x+4*y=100}} \right. [/tex]⇔[tex] \left \{ {{x+y=40} \atop {x+2*y=50}} \right. [/tex]⇔
[tex] \left \{ {{-x-y=-40} \atop {x+2*y=50}} \right. [/tex]⇒[tex]y=10[/tex]
[tex] \left \{ {{x=40-y} \atop {y=10}} \right. [/tex]⇒[tex]x=40-10[/tex]⇒[tex]x=30[/tex]
Solutia problemei este: [tex]S=\{30; 10\}[/tex]