93
3x = 1,116
x = 1,116 / 3
x = 372
372 legs, so total goats is 372 / 4 = 93 total goats
5.1m questions
6.7m answers