Let's denote the total number of people surveyed as \( x \).
According to the survey results:
- 60% preferred hamburgers, which means that 40% preferred pizza.
We know that 540 people preferred pizza, which represents 40% of the total number surveyed. Therefore, we can set up the following equation:
\[ 0.4x = 540 \]
To find the total number of people surveyed (\( x \)), we can solve for \( x \):
\[ x = \frac{540}{0.4} = 1350 \]
Now, to find the number of people who preferred hamburgers, we calculate 60% of the total number surveyed:
\[ 0.6x = 0.6 \times 1350 = 810 \]
Thus, the number of people who preferred hamburgers is 810.
The correct answer is: B: 810