If 12 out of every 15 people prefer eating at a restaurant, then 12/15 of the people who took the survey chose that option. We know that 12/15 of the total number of people who took the survey is equal to 400 people, so we can set up the equation:
(12/15)x = 400
To find the total number of people who took the survey, we can solve for x by multiplying both sides of the equation by 15/12:
x = (400)(15/12)
x = 500
So, 500 people took the survey.