This function can be also written as:
[tex]f(g(12)) = ?[/tex]
So, let's start from the inside. Let's figure out what g(12) is. It's given to us:
[tex]f(-8)[/tex]
Now, we just need to find that value:
[tex]f(-8) = 16[/tex]
So, your answer:
[tex](fog)(12) = 16[/tex]