Answer:
Ok so the two points that are given need to be in the form of y2-y1 over x2-x1, meaning the x value from the second set of points needs to be subtracted from the x value from the first set of points, and it is the same for the y values. Then that gives you the slope. You add the slope to the equation y=mx+b. The slope is m, so you put the slope in the m spot. If the slope were 3, it would look like y=3x+b because it is in the m spot. Then, you can choose any 1 set of points given and plug it into the equation. I am going to use the slope 3 , like the last example, and plug it in with the set of points. Say the point was (5,2), you will plug the x value, which is 10 in the situation, next to the the slope. The slope will then be 3(5). Then you will plug in the y value, which is 2, into the y place. At the end, the equation will look like this: 2=3(5)+b. Then you multiply 3 and 5, which is 15, and subtract 2 and 15 which will give you -13. The answer will then be -13=b. That is the y-intercept.
Explanation: