You have to read through the book [David A. Cox, John B. Little and Don O'Shea, Ideals, Varieties, Algorithms].
In any case, if you start with a system of polynomial equations and compute a Groebner basis for the ideal they generate, you get a "maximally triangular" system of equations which is equivalent to the original one---that is why Groebner bases generalize Gaussian elimination.
Let me do a simple example using Macaulay 2. Consider the ring $\mathbb Q[x,y,z]$:
i1 : R = QQ[x, y, z, MonomialOrder => Lex]
o1 = R
o1 : PolynomialRing
the Fermat quintic surface $x^5+y^5+z^5=1$, whose ideal is
i2 : surface = ideal (x^5 + y^5 + z^5 - 1)
5 5 5
o2 = ideal(x + y + z - 1)
o2 : Ideal of R
and the curve $x^2=y^2$, $y^3+1=z^3$:
i3 : curve = ideal (x^2 - y^2, z^3 - y^3 - 1)
2 2 3 3
o3 = ideal (x - y , - y + z - 1)
o3 : Ideal of R
The ideal of the intersection of the surface and the curve is the sum of the ideals of the intersecands:
i4 : intersection = curve + surface
2 2 3 3 5 5 5
o4 = ideal (x - y , - y + z - 1, x + y + z - 1)
o4 : Ideal of R
The number of points on the intersection, counting multiplicities, is the degree of the ideal:
i5 : degree intersection
o5 = 30
if we now compute the degree of the radical of the ideal, we get a lower number, so not all the points are simple:
i6 : degree radical intersection
o6 = 25
Now look at the lexicographic Groebner basis of the ideal of the intersection:
i7 : ideal gens gb intersection
17 16 15 14 13 12 11 10 9 8 7 6 5 4 3
o7 = ideal (9z + 27z + 54z + 50z + 15z - 63z - 104z - 108z - 35z + 35z + 108z + 104z + 63z - 15z - 50z -
----------------------------------------------------------------------------------------------------------------------------
2 5 16 15 14 13 12 11 10 9 8 7 6 5
54z - 27z - 9, 20y*z - 20y + 27z + 18z + 45z - 75z - 35z - 164z + 79z - 10z + 230z - 10z + 119z - 164z
----------------------------------------------------------------------------------------------------------------------------
4 3 2 3 3 16 15 14 13 12
- 35z - 155z + 45z + 18z + 67, y - z + 1, 50x*z - 50x + 50y*z - 50y + 1242z + 2718z + 4770z + 2220z - 1235z -
----------------------------------------------------------------------------------------------------------------------------
11 10 9 8 7 6 5 4 3 2 2 2
7979z - 7481z - 6010z + 1810z + 5240z + 9394z + 5346z + 1240z - 4030z - 4005z - 2657z - 583, x - y )
o7 : Ideal of R
The first generator depends only on $z$. The second one and the third, only on $z$ and $y$, and the fourth depends (linearly) on $x$ too. This is a "triangular" system of equations, from which you can compute the 30 points of intersection, assuming you get to solve the first equation for $z$, which is of degree 17...