\(a(3x+2)+b=3(ax+b)+2\\ 3ax+2a+b=3ax+3b+2\\ 2a+b=3b+2\\ 2a-2b=2\\ a-b=1\\ a-1=b\)
So as long as \(a-1=b\), \(f(g(x)) = g(f(x))\). The only other condition we need to satisfy is \(ab=20\), so:
\(a(a-1)=20\\ a^2-a-20=0\\ (a-5)(a+4)=0\\ a=5, a=-4\)
Sum them up and you'll get the answer