Let m and n be non-negative integers. If m=6n+2, then what integer between 0 and m is the inverse of 3 modulo m? Answer in terms of n.

Using inverses, we get 5n - 3.