To find the equation, first use the slope formula.
The slope formula is:
Second y coordinate minus first y coordinate, divided by second x coordinate minus second x coordinate
In your problem, the equation for finding the slope would be 10-4/6-2.
Simplify that and you get 3/2. So, your slope is 3/2.
Now you need to find the “b” or the y-intercept. Plug one of the coordinates into the equation y=Mx+b.
Let’s use the first coordinate you gave.
4 is the x coordinate, 2 is the y coordinate. M will be 3/4 because that’s the slope we found. So, the equation will be 4=3/4(2)+b. Now solve for b. B will equal -2.5.
Now put everything together. Y=3/4x-2.5
Hope that helped :)