Euclid's Elements, Book X, Proposition 4 "Given three commensurable magnitudes, to find their greatest common measure."
No download links available.