We study the time evolution of a class of exactly solvable time-dependent quantum systems with a time-dependent Hamiltonian given by a linear combination of SU(1,1) and SU(2) generators with the help of the invariant Hermitian operator. The exact common solutions of the Schrodinger equations for both the SU(1,1) and SU(2) systems are obtained in terms of eigenstates of the invariant operator. The adiabatic and non-adiabatic Berry phases are calculated with the exact solutions. Moreover, we derive an explicit time-evolution operator which is used to investigate the time-dependent two-photon squeezing states and SU(2) squeezing states. The squeezing properties of the time-dependent SU(1,1) coherent states are also discussed.