Answer :

The answer is g(3)=5

You just plug in 3 when ever you see x