The circumference of the fore and hind wheels of a carriage are 6314 m and 8118 m respectively. At any given moment a chalk mark is put on the point of contact of each wheel with the ground. Find the distance travelled by the carriage so that both the chalk marks are again on the ground at the same time