How do you find the slope given y=3x+1?

Looking at the number in front of the $x$.
In the equation of a line, the slope is the number in front of the $x$.
So it is $3$.