Container 1 has 174 lires of oil, Container 2 has 258 litres of oil. Sam pours entire contents of container 1 into smaller jars, so that the oil completely fills the jars and there is no oil left. He also pours the entire contents of container 2 into the same size jars so that there is no oil left. What can the maximum size of the smaller jars be?