I dont know why im having trouble with this problem i sware i did it last semester in number theory now for some reason i cant figure it out in modern algebra.

Given a|b and b|c and gcd(a,b)=1 then ab|c. I know we get b = aj, c = bk and 1 = am + bn i cant figure out how to put them together to get ab|c