a)
First, put the elements in increasing order, i.e.
\[ \var{latex(join(sort([v_less_9a,v_more_11a,v_less_9b,v_between_9_11,v_more_11b]),','))} \]
The median of the set is the middle value in the sorted list. In this case, it's $\var{v_between_9_11}$.
b)
First, put the elements in increasing order, i.e.
\[ \var{latex(join(sort([v_less_4a,v_less_4b,v_between_5_10,v_more_10a,v_more_10b]),','))} \]
The median of the set is the middle value in the sorted list. In this case, it's $\var{v_between_5_10}$.