Equation of a straight line can be represented as y = mx + c where m is slope and c is y-intercept
slope, m of the line is calculated as follows:


The slope is 1/2
For the y-intercept:
Compare the equation with y = mx + c
c = -1/2
The y-intercept is -1/2