Mr. Santos wants to cover a plot of land measuring 310 cm by 245 cm with square pieces of wood of the same square. Find the greatest possible length of each side of each piece of wood.