The first graph is the solution for given table and the linear equation is y=3x+2.
Explanation:
The linear equation of the line is y=mx+c.
where m is the slope and c is the y intercept.
The slope


Choose two points (0,2) and(1,5).

y=3x+c.
To find the y-intercept value substitute (0,2) in the equation.
2=0+c.
c=2.
∴y=3x+2.