A survey asked 647 college freshmen if they had been to a movie or eaten in a restaurant during the past week. The following information was obtained: 331 had been to neither a movie nor a restaurant, and 282 had been to a movie. If 184 of those who had been to a movie had not been to a restaurant, how many of the surveyed freshmen had been to both a movie and a restaurant?