Do you know what the median represents in terms of the distribution of numbers in a statistical analysis?

Here are two number distributions, A and B:

A: 1, 1, 4, 9, 12.

B: 2, 4, 6, 7, 7.

Is the median of A higher and lower than group B? Is the mean (or average) of group A higher or lower than group B?

If group A and B represent salaries of women (group A) and men (group B) in a particular job, would you think that the median or the mean would be more important?