I started by showing that $gcd(kn, m) = gcd(lm, n) = 1$, and with Bezout's lemma I wrote $knx + my = 1$ and $lmx' + ny' = 1$. Then I solved for my and $ny'$ and multiplied them together to get:
$$ mnyy' = (knx - 1)(lmx' - 1) = klmnxx' - knx - lmx' + 1. $$
Rearranging gives: $$ mn(yy' - klxx') + knx + lmx' = 1. $$
So it appears all that is left to do is to show that $x = x'$ I think, however I am lost on how to do this. Any help is welcome!