Find total energy released by capacitor up to point Q (using your answer to part A may be helpful).
The energy released by a resistor is inversely proportional to its resistance. Therefore take this answer and multiply it by R_1/(R_2+R_1).
The answer I got worked on Isaac Physics...not sure if it's the best solution but it works!