First, let's assign variables:
p = pigs
h = horses
s = sheep
We know that:
7p = 3h
p = 5s
We can input 5s in p:
7(5s) = 3h
35s = 3h
h = 35s/3
h = 11 2/3 s
Multiply both sides by 8:
8h = 88 16/3 s
Simplify the fraction
8h = 93 1/3 s
He can get 8 horses for 93 1/3 sheep