At a basketball game, 54% of people attending were supporting the home team, while 46% were supporting the visiting team. If 1566 people attending the game supported the home team, what was the total number of people attending the game?

Let the total number of people attending the game be represented by x.

According to the given information, 54% of x were supporting the home team, which is 0.54x. This number is also given as 1566.

So we have: 0.54x = 1566

To find x, we divide both sides by 0.54:

x = 1566 / 0.54
x = 2900

Therefore, the total number of people attending the game was 2900.