Hi,
The answer for the voltage comes out to 5*e^(-t/(1500*100e-6))+27 because the 27 subtracts from 32 and the 27 is the final voltage.
However, it's probably better to do this circuit using the capacitors initial voltage as a third voltage source in the circuit, which after t=0 there will be two voltage sources. With the added new voltage source in series with the capacitor the voltage would be 32v and then the initial cap voltage would be 0. You then handle this simply as a two source circuit (after t=0) and dont have to worry about using any special techniques. The analysis is more straightforward like this.