I was doing a couple of problems for homework:
Calculate $K_\mathrm{sp}$ of $\ce{AgI}$ at $55.0\ \mathrm{^\circ C}$
Calculate $K_\mathrm{b}$ of $\ce{NH3}$ at $36.0\ \mathrm{^\circ C}$
I have to use $\Delta G^\circ= -RT\ln K$ and $\Delta G= \Delta H-T\,\Delta S$
When I did this $\Delta G^\circ$ is positive ($89.59\ \mathrm{kJ/mol}$ and $28.037831\ \mathrm{kJ/mol}$ respectively), yet $K_\mathrm{sp}$ for $\ce{AgI}$ is $5.5\times10^{-15}$ and $K_\mathrm{b}$ for $\ce{NH3}$ is $1.8\times10^{-5}$, indicating that there are some products and the reactions do occur. Plus, $1.0\ \mathrm M$ $\ce{NH3}$ in solution has a $\mathrm{pH}$ of $11.6$ so it must react a little.
According to the second law of thermodynamics, if $\Delta G$ is positive, the reaction is not spontaneous, right? But clearly, they, in fact, are to a certain extent. What is going on?