Suppose $1<p,q<\infty$, $\dfrac{1}{p} + \dfrac{1}{q}=1$, $(X,\Sigma,\mu$ is $\sigma$-finite measure space and $g$ is a measurable function such that $fg \in L^1(X)$ for every $f \in L^p(X)$. Prove that $g \in L^q(X)$.
I have no idea where to start this question. It seems to me a lot like a close question to the Riesz Representation Theorem, or an application of it. Any help is much appreciated. I'm just refreshing many questions I haven't looked at in quite some time for preparation of my Analysis Qualifying Exams.