Final answer:
The number of home team fans was 187 and the number of visiting team fans was 45, making a total of 232 fans at the game.
Step-by-step explanation:
Let's assume the number of visiting team fans as x.
According to the given information, the number of home team fans is seven more than four times the number of visiting team fans. So, we can write the equation as:
Home team fans = 4x + 7
Also, it is mentioned that there were 142 more home team fans than visiting team fans. So, we can write another equation as:
Home team fans - Visiting team fans = 142
Substituting the value of home team fans from the first equation into the second equation:
(4x + 7) - x = 142
Simplifying the equation:
4x - x + 7 = 142
3x + 7 = 142
3x = 135
x = 45
Now, we can find the number of home team fans by substituting the value of x back into the first equation:
Home team fans = 4(45) + 7 = 187
So, the total number of fans at the game is the sum of home team fans and visiting team fans:
Total fans = Home team fans + Visiting team fans = 187 + 45 = 232.