My first instinct was to overcomplicate it.
Model the number of people choosing location A as a Binomial(5, 0.5) random variable. Then express X as the minimum of K and 5-K, and compute its expected value by summing over all possible values of K.
Pro tip: After computing the answer, mention that you can verify it by symmetry and by checking that the expected number at the less crowded location is always less than or equal to 2.5, which adds credibility to your solution.
Let K be the number of people who choose location A. Then K follows a Binomial distribution with n=5 and p=0.5.
The number of people at the less crowded location is X = min(K, 5-K). This is because if K > 2.5, then location B has 5-K people and is less crowded, and vice versa.
Enumerate all possible values of K (0 to 5) and compute their probabilities using the binomial formula. Then determine the corresponding X values.
Calculate E[X] by summing X * P(K=k) over all k from 0 to 5. Use symmetry to simplify the calculation if needed.
Check that the result is reasonable (e.g., between 0 and 2.5) and present the final answer clearly.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.