Problem 7.4. Masha and Olya bought many identical pens for the new school year at the store. It is known that one pen costs an integer number of rubles, more than 10. Masha bought pens for exactly 357 rubles, and Olya - for exactly 441 rubles. How many pens did they buy in total?
Answer: 38.

Solution. Let the pen cost $r$ rubles. Then the numbers 357 and 441 are divisible by $d$. Since the greatest common divisor of the numbers $357=3 \cdot 7 \cdot 17$ and $441=3^{2} \cdot 7^{2}$ is $3 \cdot 7$, then 21 is also divisible by $r$. Since $r>10$, then $r=21$. Therefore, the total number of pens bought is $\frac{357}{21}+\frac{441}{21}=17+21=38$.