Solution:
The equation for the function is given below as
Step 1:
Substitute the value of g(x)=0 in the equation above
Step 2:
Substitute the value of x=0 in the equation below
Step 3:
Substitute the value of g(x) =-5
Step 4:
Substitute the value of x=3 in the equation below
Hence,
The final answer is