find the potential difference across the resistances