MaxMedian(CF) Why we don't count the number of equals to X?

Consider the array 2 2 5 6 6 6 6 with X = 5 and K = 7
The number of elements that are <X is 2
The number of elements that are >=X is 5
According to the solution, X can be median
But it can’t

Right, but a median of at least x is achievable. Can update the internal sol to reflect that.