The median number of portions of vegetables that the people surveyed ate yesterday is 10.
To find the median of a set of data, you need to arrange the data in numerical order and then find the middle value. If there is an even number of data points, the median is the average of the two middle values.
From the information provided, it seems that the data points are 2, 10, and 12.
Now, let's arrange these numbers in numerical order: 2, 10, 12.
Since there is an odd number of data points, the median is the middle value, which is 10.
Therefore, the median number of portions of vegetables that the people surveyed ate yesterday is 10.