Find the potential difference between the points A and B and that between E and F of the circuit shown in figure.