Euclid's Elements, Book X, Proposition 5 "Commensurable magnitudes have to one another the ratio which a number has to a number."
No download links available.