Find all solutions for $x$ in the congruence equation $30x\equiv40(\text{mod } 50), 0\leq x\leq 50$
30 does not have a modular inverse since $\text{gcd}(30,50)=10>1$. However, we can employ a "trick": $$\frac{30x}{10}\equiv\frac{40}{10}\left(\text{mod } \frac{50}{10}\right)\implies3x\equiv4(\text{mod } 5)\implies x\equiv3(\text{mod } 5)$$
And, now all numbers $0\leq x\leq 50$ that are in the same congruence class as $x\equiv3(\text{mod } 5)$ work: $$x\in{3,8,...,48}$$
This is useful in non-trivial/competition problems as well:
Let $a_n=6^{n}+8^{n}$. Determine the remainder upon dividing $a_ {83}$ by $49$. (AIME 1983/6) (See Solution 3, where it is used to work mod 7, and then get the answer back in terms of mod 49)
Is there a standard name for this trick? Is it a property? When/where can it be used/not used? I am looking for this online, but I am only able to find references to modular inverses.