A capacitor of capacitance C is given a charge q0. At time t=0 it is connected to an uncharged capacitor of equal capacitance through a resistance R. Find the charge on the first capacitor and the second capacitor as a function of time t. Also, plot the corresponding q-t graphs.