I'm having a great deal of difficulty trying to show that if and that then

I've tryed working this thing out backwards, taking and trying to get but I got stuck in a loop or had a residue of 1.

I also tryed multiplying by their respective denominators, and their common denominator, but that let nowhere. Squaring didn't help either.

If anybody has any idea of how to approach this, it would be much appreciated.