Suppose there is an $n$-dimensional affine subspace - let us call it $S$ of $\mathbb{R}^d$, $d>n$. Suppose we have $k>n$ hyperplanes in $\mathbb{R}^d$. We want to determine the dimensions of the intersection of these hyperplanes and $S$. It is given that the intersection is non-empty.
A very helpful answer here says, for $k>n$ the intersection can have any number of dimensions from $0$ to $n−1$. My question is: How do we determine the actual dimensions of the intersection? My hyperplanes are all of the form $x_{l} = x_{l'}$, i.e. they stipulate equality of pairs of coordinates of a point in $d$ dimensions.
My approach: The $k$ equalities are all independent. But it is also given that the intersection is non-empty. I'm at a loss trying to determine how this is possible.
Edit: An earlier version of the question did not metion $\mathbb{R}^d$ at all, reduced the space to $S$ and spoke as if we have a set of $k>n$ equalities, which create a subspace of $S$, which in turn implies that some of the $k$ equalities (when the space is reduced to S) have to be redundant (since it is given that the intersection is non-empty). I subsequently edited the question to add the details about $\mathbb{R}^d$ at the suggestion of user Zanxiong, who very helpfully provided the first answer.