I need to find all solutions to:
$$4x\equiv3\pmod7$$
I know the solutions are in ${0, 1, 2, 3, 4, 5, 6}$ and I got $x \equiv 6 \pmod7$ so my answer was 6 but I don't know if that's all the answers.
I have the same problem with:
$$3x+1\equiv4\pmod5$$
I got $x\equiv1\pmod5$ so my answer was $1$ since it is in ${0, 1, 2, 3, 4}$.
In these problems, you can plug in each of the possible values for $x$ (since there are finitely many), and see which ones work. For the first problem, it is indeed true that only $x\equiv 6\pmod{7}$ is a solution, and for the second, it is true that only $x\equiv 1\pmod{5}$ is a solution.
If you know about fields, it turns out that $\Bbb{F}_p = \Bbb{Z}/(p)$ (i.e., the set of numbers you use in modular arithmetic) forms a field when $p$ is a prime number. Given a linear equation $ax + b = c$ where $a\neq 0,b,$ and $c$ are elements of your field, there exists a unique solution given by $x = (c - b)a^{-1},$ as for any nonzero element $a$ in a field there is a unique element $a^{-1}$ such that $a a^{-1} = a^{-1}a = 1.$