A voltmeter of resistance r1 and an ammeter of resistance r2 are connected in series across a battery of negligible internal resistance. When a resistance r is connected in parallel to the voltmeter, the reading of the ammeter increases three times while that of the voltmeter reduces to one third. Find r1 and r2 in terms of r.