I'll take a stab at it, but I'm no electrical engineer. It appears to be all unit cancellation.
So first, covert all of your units so they're the same. So:
3.2 MJ = 3,200,000J
1282J/6s = 769,200J/h
Then you solution should be J/(J/h) = h
So your estimated run time should be:
3,200,000J...