320 J of heat is produced in 10 s in a 2 ohm resistor. Find the amount of current flowing through the resistor

Given, H = 320 J,
t = 10 s,
R = 2 ohm,
I = ?

Thus, the amount of current flowing through the resistor is 4 A.