Find the equation of the line passing through the given pair of points. Write the equation in slope-intercept form.
\[
(-2,-1),(5,4)
\]
What is the slope-intercept form of the equation that passes through $(-2,-1)$ and $(5,4)$ ?
(Simplify your answer. Type your answer in slope-intercept form.)
\(\boxed{y = \frac{5}{7}x + \frac{3}{7}}\)
Step 1 :Find the slope (m) using the slope formula: m = \(\frac{y2 - y1}{x2 - x1}\)
Step 2 :m = \(\frac{4 - (-1)}{5 - (-2)}\) = \(\frac{5}{7}\)
Step 3 :Use the point-slope form to find the equation of the line: y - y1 = m(x - x1)
Step 4 :y - (-1) = \(\frac{5}{7}\)(x - (-2))
Step 5 :y + 1 = \(\frac{5}{7}\)x + \(\frac{10}{7}\)
Step 6 :y = \(\frac{5}{7}\)x + \(\frac{3}{7}\)
Step 7 :\(\boxed{y = \frac{5}{7}x + \frac{3}{7}}\)