This is an example
Write the equation of the line with the given slope and y-intercept. slope: 5;y-intercept : (0,-2)
you must use

You need to know M is also known as Slope
You need to know B is also known as Y-Intercept
First substitute the M for your slope

Second Substitute the B for your Y-Intercept