Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Okay Electronica, you can do this! Start off with a Supersonic since you can take the Hydro Pump, even though you're faster! He should easily hit himself with all this confusion! Then go with two Sonicbooms!
Unfortunately i have to get ready to for work so i will have to edit in the flavor later, major points:
Supersonic hits
1st Flamethrower burns magnemite
Cloudy hits itself last action and snaps out of confusion
Cloudy uses Hydro Pump -> 9 Damage, -8 Energy
Electronica uses Supersonic -> Success, lasts 3 turns -4 Energy
Cloudy uses Flamethrower -> 11 Damage, -7 Energy BURNS
Electronica uses Sonic Boom -> 10 Damage, -7 Energy
Burn deals 2 Damage to Electronica
Cloudy hits itself in confusion -> 4 Damage, -3 Energy
Electronica uses Sonicboom -> 10 Damage, -11 Energy
Burn deals 2 Damage to Electronica
Cloudy snaps out of confusion