In order to determine the time, use the following formula for the power:
[tex]P=\frac{E}{t}[/tex]where,
P = 30J/s
E = 450J
t = ?
Solve the equation above for t and simplify:
[tex]t=\frac{E}{P}=\frac{450J}{30\frac{J}{s}}=15s[/tex]Hence, the time was 15s