With seven sorted values, the median is the 4th value, Q1 is the 2nd and Q3 is the 6th, because each half has three values.
For 2, 4, 5, 7, 8, 9, 12: the 2nd value is 4, the 4th is 7, and the 6th is 9.
2, 4, 7, 9, 12
The other lists give the summaries 2,3,7,10,12, then 2,4,9,11,12, then 2,5,7,9,12.