I'm doing an assignment about Groebner basis and it's applications and I want to show how it helps us to solve a system of polynomials equations, I've been working with the book "An Introduction to Computational Algebraic Geometry and Commutative Algebra" of David Cox, John Little, Donal O’She, the problem is that the book doesn't cover why Groebner basis helps us to solve a system of polynomials equation, they talk briefly why Buchberger’s algorithm is a general algorithm for row-reduction algorithm, and after that they give some examples to how to use Groebner basis to solve a system of polynomials equation but without explain why does it works, I've tried to read it in wikipedia but also there it's not written why does it works.
I'll be glad if someone could give me sketch of proof or idea why does it work, i.e. why if we works with the lexicographic order on $\mathbb{Z}_{\geq 0}^{n}$ and compute a basis for ideal that generated by $n$ polynomials (and the system has finitely many solutions) then we get a polynomial only depends in $x_n$ which lies in the basis ?
Thank you all in advance!