Method
The median is the middle value in ordered data. With an even number of values, it is the mean of the two middle values.
Find the median of 12, 4, 9 and 7.
Order the values as 4, 7, 9, 12. The middle values are 7 and 9, whose mean is 8.
(7 + 9) ÷ 2 = 8