
We are given 2 points that the line passes through, so we can find the slope of the line using this formula:

In this case, y₂=4, y₁=0, x₂=2, x₁=4
Now, plug in the values:


Divide:

Hope it helps!
Enjoy your day!
Please feel free to ask if you have any doubts.
-Sparkle-