5. a. Three metal rods of lengths 234cm, 270cm and 324cm were cut into shorter pieces, all of the same length to make window grills. Calculate the length of the longest piece that can be cut from each of the rods and hence the number of pieces that can be obtained from the rods.