Solution:
In the following we call a three-element subset {s,t,u}⊂S a balanced triangle if the set {ggT(s,t),ggT(s,u),ggT(t,u)} has exactly two distinct elements. It is to be shown that there exists a balanced triangle.
Lemma. For pairwise distinct numbers a,b,c,d∈S such that ggT(a,b)=ggT(a,c)=ggT(a,d) and ggT(b,d)=ggT(c,d) hold, the set {a,b,c,d} contains a balanced triangle.
Proof. If ggT(a,b)=ggT(b,d), then {a,b,d} is a balanced triangle. Otherwise, either ggT(a,d)=ggT(a,b) or ggT(a,d)=ggT(b,d) holds, so {a,b,c} or {b,c,d} is a balanced triangle.

For every element a∈S let Sa={ggT(a,s)∣s∈S,s=a}. Since this set contains only divisors of a, it is finite. From the hypothesis it follows that we can choose a∈S such that Sa contains at least two elements, since otherwise ggT(v,w)=ggT(w,x)=ggT(x,y) would hold.
By the pigeonhole principle we find an infinite subset T⊂S such that ggT(a,t) is the same value g for all t∈T. Now we choose a d∈S\(T∪{a}) such that ggT(a,d)=g, which must exist because of ∣Sa∣>1. Since Sd is also finite, by the pigeonhole principle we find two distinct elements b,c∈T such that ggT(b,d)=ggT(c,d) holds. Then a,b,c,d satisfy the hypotheses of the lemma, so indeed a balanced triangle exists.