Finalize solutions before submit to Works Applications
Euclid's GCD algorithm