Let the second digit be $n$, and the common difference of the AP be $d$, the common ratio of the GP be $r$:
$(n-d), n, nr, nr^2$
So as the middle two integers are also in AP we have that
$d=nr-n=n(r-1)$
so we can eliminate $d$ and have the four integers as
$(n-n(r-1)), n, nr, nr^2$
or more tidily
$n(2-r), n, nr, nr^2$
Now we can make a few equations based on the sums of the first and last etc that you state:
$n(2-r)+nr^2=37$
factorising out the $n$ gives
$n(r^2-r+2)=37$ ............... Equation 1
and the middle number sum:
$n+nr=36$
which tidies to
$n(1+r)=36$ ............... Equation 2
combining equations 1 and 2 to eliminate $n$ gives:
$\frac{36}{1+r}=\frac{37}{r^2-r+2}$
which, I assure you, tidies to
$36r^2-73r+35=0$
solving the quadratic gives $r=\frac{5}{4}$. The other value it gives won't give integer solutions (try it yourself and see). Putting this value of $r$ into equation 2 gives us $n=16$. So we have
12, 16, 20, 25