A student built an electric circuit that consists of an ideal battery, a voltmeter with resistance RV, an ammeter with resistance RA and a resistor R. She connected all elements in the circuit as shown in Fig. (1). The voltmeter showed a reading of 1V and the ammeter showed a current of 1A. Then, another student switched between the voltmeter and ammeter Fig. (2). As a result, the voltmeter showed the reading of 2V and the ammeter showed the current of 0.5A. What is the resistance of the resistor?