Two resistors are connected to their own voltage sources. The voltage across the second resistor is three times the voltage across the first resistor and the current through the first resistor is twice the current through the second resistor. Find the ratio of the electrical energies received by both resistors at the same time.