If I rewrite the expression for T and isolate S i get S=(27T^3V)/(64A). I can then replace the integral of -SdT to find F by the integral of -(27T^3V)/(64A)dT which equals -(27T^4V)/(256A).
It seems to make sense since I get rid of the S terms in the first integral. However I don't see how I can get rid of the S term in the expression of pressure P, so I can't integrate PdV.
I also considered using the definition F=U-TS but there again I get stuck with the S term in the expression of U. And if I use dF=dU-TdS-SdT and integrate I still have to do something with dU. I know I am probably missing some simple relation but I really can't think of anything that would rid me of S...