Position yourself between Boid and Octagon. When Octagon lines up his shot, dodge the beam so it strikes Boid instead and paralyses him. While Boid is frozen, hit him as hard as you can, then repeat the pattern until he goes down. Octagon is still standing at this point.
Octagon takes to the air and starts throwing electrical projectiles. Block or sidestep them, and pick your moment to land a hit. Run the same loop until he is defeated too.