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.
The answer is -4n + 8.