I know same question has an answer already. But I'm rather doubtful if the proof given there actually proves the claim for finite cardinalities.
For infinite cardinals $\kappa (=w(X) \;\;\text{in the proof})$ we do have that, say, union of $\kappa$ copies of sets of cardinality $\kappa$ is $\kappa$, but of course this isn't necessarily true if $\kappa$ is finite.
So I'm wondering how should one account for cases when $\kappa$ is finite?
Any helps are appreciated
Suppose $\mathcal{B}$ is a finite basis for a space $X$. Then I claim that $X$ actually has a smallest basis, i.e. a basis contained in every other basis.
First, note that for any $x\in X$, there is a smallest open set $U_x$ containing $x$: just take the intersection of all the elements of $\mathcal{B}$ that contain $x$ (here is where we use finiteness of $\mathcal{B}$). This $U_x$ is contained in every open set containing $x$, so if $\mathcal{C}$ is a basis for $X$, $U_x$ must be an element of $\mathcal{C}$ (since $\mathcal{C}$ must contain an open subset of $U_x$ containing $x$).
Now define $\mathcal{B}_0=\{U_x\}_{x\in X}$. First, $\mathcal{B}_0$ is a basis: if $U$ is open and $x\in U$, then $U_x\subseteq U$, and $U_x\in\mathcal{C}$. Moreover, we have shown that any other basis $\mathcal{C}$ contains $\mathcal{B}_0$.
So $\mathcal{B}_0$ is the smallest basis of $X$. In particular, all bases contain a basis of minimal possible cardinality (namely, $\mathcal{B}_0$).