Answer:
Equation of line is given by:
y=2x+2
Explanation:
The equation of a line is given by:
y=mx+c
where c is the y-intercept and m is the slope
y-intercept is given to be 2 i.e. c=2
Now, we have to find the value of m
x-intercept is the value of x where y= -1
0= m(-1) + 2
or -m+2=0
or m=2
Hence, equation of line is given by:
y=2x+2