What function is represented by the graph?

Answer:
A
Step-by-step explanation:
The equation of the horizontal line is y = 4 : x ≥ 0
the equation of the oblique line, since it passes through the origin is of the form
y = mx ( m is the slope )
to calculate m use the gradient formula
m = ( y₂ - y₁ ) / (x₂ - x₁ )
with (x₁, y₁ ) = (0, 0) and (x₂, y₂ ) = (- 1, - 2 ) ← 2 points on the line
m = [tex]\frac{-2-0}{-1-0}[/tex] = [tex]\frac{-2}{-1}[/tex] = 2
y = 2x : x < 0