12v runs from battery to amp.
Earth runs to amp from chassis
Trigger runs from headunit to amp
RCA's run from headunit to amp
Speakerwire runs to sub from amp
Just make sure your earth and 12V wires are nice heavy duty cable to ensure you get the best performance from your amp and you wont risk burning them out.