They trick Hydro and Sand into merging with each other again, then they trick Electro into blasting them.
Without such tactics, neither Spider-Man nor Wolverine can do anything to do them ---- Parker will get killed in moments (as shown against serious Hydroman or against Sandman in an alternate universe), Wolverine may last, but will get beaten eventually (as shown in What if HoM).
Hulk is the only one that can mess them up, because of his thunderclaps and experience fighting Zzzax.