A linear regression equation is a line so it has a form of y = mx + b, which is an equation of a line. You will also see it as Y = a + bX. In the form of Y= a +bX the b is the slope.
There are different methods to fitting a line and the most common method is the method of least-squares.