Can someone explain how they got the answer for this?

Answer:
y = 6x + 4
Step-by-step explanation:
We know the equation is linear. First, use two points to find the slope of the line.
m = (y₂ − y₁) / (x₂ − x₁)
m = (10 − 4) / (1 − 0)
m = 6
The y-intercept is 4. So the equation of the line is:
y = mx + b
y = 6x + 4