Răspuns:
gainile, iepuri si caprele au un singur cap
=> g+i+c=70
gainile au 2 picioare, iepuri au 2 picioare si caprele tot 4
i=c+40
=>g+i+c=g+c+c+40=70 => g+2c= 70
2g+4c+2i=232 |:2
=> g+ 2c+ i = 116
=> g+ 2c+ c+40= 116
=> g+3c+ 40 =116 => g+ 4c= 76
(g+3c)- (g+2c) = 76-70
=> c= 6
=> i =46 => g= 70-46-6= 24-6= 18