When a current of 0.5A is passed through two resistors in series, the potential difference between the ends of the series arrangement is 12.5V. On connecting them in parallel and passing a current of 1.5A, the potential difference across them is 6V. The two resistances, in ohms, are