Two resistors, A and B, are connected in series to a 6.0 V battery. A voltmeter connected across resistor A measures a potential difference of 3.5 V. When the two resistors are connected in parallel across the 6.0 V battery, the current in B is found to be 1.8 A. Find the resistances of A and B.