I apologize in advance if this is a stupid question but getting this wrong would prove a very expensive mistake. For temporary wiring of my backup generator I am making my own 220 male to male cable to connect the generator to my main panel via the dryer outlet. All I need is about 6 feet to make this run. I bought 6 feet of three conductor 10 gauge wire and two 30 amp rated male 220 plugs. The plugs each have black, green and white connections and the wire has red, black, white and a common ground. How should I wire this? Eventually I plan to wire in a manual transfer switch but in case the need arises to use the generator before I get that done I want to make sure I am covered. Thanks in advance.