Step 1: Note the burn rates of the two candles.
Both candles start out the same length, call it L. The thick candle takes 6 hours to burn completely, so it burns at a rate of L/6 of its length per hour. The thin candle takes two hours less, that is 6 - 2 = 4 hours, to burn completely, so it burns at a rate of L/4 of its length per hour.
Step 2: Write expressions for the remaining length of each candle after t hours.
After burning for t hours, the thick candle has burnt away (L/6)t of its length, so its remaining length is L - (L/6)t = L(1 - t/6). Similarly, the thin candle's remaining length is L - (L/4)t = L(1 - t/4).
Step 3: Use the condition that the thick candle is twice as long as the thin candle when he stops.
At the time Ramaswami stopped studying, after t hours, remaining thick length = 2 x remaining thin length: L(1 - t/6) = 2 x L(1 - t/4). Since L is common and nonzero, it cancels out: 1 - t/6 = 2(1 - t/4) = 2 - t/2.
Step 4: Solve the equation for t.
1 - t/6 = 2 - t/2. Bring the t terms to one side and the constants to the other: t/2 - t/6 = 2 - 1 = 1. Using a common denominator of 6: 3t/6 - t/6 = 1, so 2t/6 = 1, which simplifies to t/3 = 1, giving t = 3.
Step 5: Interpret the result.
Ramaswami studied by candlelight for 3 hours, starting around 1:00 a.m., meaning he stopped studying and went to sleep at around 4:00 a.m. This matches option (2).