First the socolofi is classified as a herbivore eating veggie material.
Second, the electra is classified as a carnivore eating moslty meaty material.
The diets vary so much that I'd hesitate. It'd be different if one was a carnivore and the other an omnivore(eats plant and meat material). In this case it's hard to feed both species. If mbuna get to much meat then they can develop bloat which is mostly fatal. If you feed toward the socolofi's needs then the electra potentially isn't getting what it needs.