Question about correlation of two signals
You are correct in noting that cross-correlation is not commutative. If the question says "correlation between two signals $x$ and $g$" then it is usually assumed that you go in that sequence and compute $\Phi_{xg}$. 

Or you can choose to say that the question and ambiguous compute both $\Phi_{xg}$ and $\Phi_{gx}.$