In a yard there are 7 more pigs than hens all legs add up to 58 legs so how many pigs are there

1 answer

write what you are given:

p = h+7
4p+2h = 58

Now it's a cinch, right?