A circuit A takes a current of 3 A at a power factor of 0.6 lagging when connected to a 115 V, 50 Hz supply. Another circuit B takes a current of 5 A at a power factor of 0.707 leading when connected to the same supply. If the two circuits are connected in series across a 230 V, 50 Hz supply, calculate the impedance of the circuit.