You can put this solution on YOUR website! If A=B and B=C then A=C
.
This is called the transitive property. If you do a Google on Euclid (a Grecian from around
300 BC) you should find that he established the basis for this property. And the property
is more in the category of a postulate or an axiom than it is a theorem.
.
The history of mathematics is a very interesting subject. You'd be surprised how well versed
in Euclid people like Isaac Newton and others were. Look into Euclid's "Elements" which were
13 books containing his developments plus his comments on the mathematical developments
of others.