How to graph and calculate the slope of a line generated from the given points array?

Oops! I left out the intercept, b, so it sort of included (0,0) as a data point. Here’s the updated with the same result.