in the y = kx + b graph, k equals to tan(θ), where θ is the angle between the graph and Ox. In this case, k = 0.5.
This graph is the graph y = 0,5x shifted by 1 to the left, so its formula is 0.5(x + 1) = 0.5x + 0.5.
The answer is y = 0.5x + 0.5.
You can also get the equation from the system of equations.
we will take two points from the graph: (-1; 0); (1; 1)
First equation is 0 = k * -1 + b;
the second is 1 = k * 1 + b.
From the 1st, k = b; from the second, k = 1 - b. b = 1 - b; 2b = 1; b = 0.5; k = b = 0.5.
y = 0.5x + 0.5.