2

Here's what we have:

$\mathrm{gcd}(a,b)=d$ ; $\mathrm{lcm}(a,b)=m$ ; $a+b=30$ ; $m+d=42$ ; $b>a$.

What I tried:

if $d$ divides $a$ and $b$ so it divides $a+b$ so $d$ divides $30$. And with $\mathrm{gcd}$ and $\mathrm{lcm}$ rules I found that $md=ab$. But that's all, I didn't know how to continue.

Thanks.

Manan
  • 513
18.99
  • 69
  • 1
    Well, if all else fails a simple search is easy enough. There are only $14$ possible values for $a$, after all. – lulu Aug 01 '20 at 16:05

1 Answers1

3

Hint: This might help narrowing down the search: $d$ also divides $m$ (and hence it divides $42$).

ir7
  • 6,249