I've read the article on Wikipedia, but I don't get how to construct the relationships between sides and angles to reach a solution for the distance between two points.
All the other sites I read either just tell you to scale the triangle in a piece of paper or they use a right-angled triangle (making one of the angles you measure be 90 degrees).
I'd really appreciate any help. Thanks!
In the figure, $x = AB, y = AD, z = AC, h = CD$, where $\overline{CD}$ is perpendicular to $\overline{AB}$.
A common application of triangulation: You want to measure the distance from $A$, where you are to a distance object $C$. So you move over a known distance $x$ (usually much smaller than the distance to $C$) to another point $B$ where you can see both $A$ and $C$, then measure the angles at $A$ and $B$ (which I will denote by the same letters).
So you know the angles $A$ and $B$, and the distance $x$. And you want to find $z$. By the Angle-Side-Angle theorem, $A,B, x$ are enough to completely determine the triangle. Drop the height from $C$ onto $\overline{AB}$ intersecting in $D$. $y$ is the distance from $A$ to $D$, which means that the distance from $B$ to $D$ is $(x - y)$. Now we have two right triangles. Since the tangent is opposite over adjacent, we have two expressions for $h$:
$$h = y\tan A \qquad\text{and}\qquad h = (x - y)\tan B$$
Equating these and solving for $y$ gives: $$y = \frac {x\tan B}{\tan A + \tan B}$$ The left triangle also gives $y = z\cos A$, or $z = \frac y{\cos A}$. Therefore $$z = \frac {x\tan B}{\cos A (\tan A + \tan B)} = \frac{x\sin B}{\sin(A + B)}$$
So from the three measurements you made locally, you are able to compute the distance to the far off point $C$.