avem x/1=y/2=z/3=p/4=q/5
folosind egalitatile in care sa apara x, vom scrie toate numerele in functie de x
x/1=y/2, deci y=2x
x/1=z/3 deci z=3x
obtinem la fel p=4x si q=5x
x+2y+3z+4p+5q=x+2*2x+3*3x+4*4x+5*5x=55, deci 55x=55, deci x=1
inlocuim in relatiile de sus
y=2, z=3, p=4 q=5