hello!
We are given the line's slope and the line's y-intercept (the point where the line touches the y-axis)
It's easier to write the equation in Slope-Intercept Form, which looks like so:-
![\boxed{y=mx+b}](https://img.qammunity.org/2023/formulas/mathematics/high-school/r7lxb5li1i0cz51565g11anpoocnirabv2.png)
where m -> slope of the line & b -> y-intercept
Instead of m, you should plug in 6:-
y=6x+b
Instead of b, you should plug in 2:-
y=6x+2 ✓
note:-
Hope everything is clear; if you need any explanation/clarification, kindly let me know, and I will comment and/or edit my answer :)