Given that for all the values of x,
f(x)=3x+p
g(x)=px+4
and fg(x)=6x+q
where p and q are constants.
Work out the values of p and q.