In a 20 Vac series RC circuit, if 20 V is read across the resistor and 40 V is measured across the capacitor, what is the applied voltage?