A baker made two types of cakes. He sold 30% of the first type and 45% of the second type. At the end of the day, he had 140 cakes of the first type and 220 cakes of the second type left. What is the greatest common divisor of the total number of cakes he initially made? Let's think step by step and output the final answer within \boxed{}.
user