Choose the definition for the function.

Answer:
B
Step-by-step explanation:
For x<=0, the equation is 2x+2 and hence option B is the answer.