To find the equation of the line that passes through 2 points, we have to find the slope and the y-intercept
The form of the equation is y = mx + b
m is the slope
b is the y-intercept
The rule of the slope is
![m=(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2023/formulas/mathematics/high-school/78uaqhwt0aws3qfwxigaftpihnmb1gzxtp.png)
Since the line passes through points (0, 7) and (3, 10), then
x1 = 0 and x2 = 3
y1 = 7 and y2 = 10
![\begin{gathered} m=(10-7)/(3-0) \\ m=(3)/(3) \\ m=1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/xuppm23ueasgyvs16obndn8gxoj8lgom5c.png)
Substitute m in the rule of the equation
![\begin{gathered} y=1(x)+b \\ y=x+b \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/7thuqqcpd5ntqwpyprwa1ey8spi5doat3b.png)
Since b is the y-intercept (value y at x = 0)
Since the line passes through the point (0, 7), then
b = 7
The equation of the line is
![y=x+7](https://img.qammunity.org/2023/formulas/mathematics/college/w4dknm070jwpx67tu9bzelcm50zjf33q4h.png)
The answer is C