Ideally the electrical wire should not come close to the speaker wire. If they’re separated by the width between the two vertical studs, that is fine.
As for how to install, have you already purchased the speakers? If so, consult the manual. If not, go to Yamaha’s web site & download the manual.