8ga will work if you don't have a long run from TM to TM batts? Where are the TM batts located?? If you have a long run to do, then 6ga would be better overall. I fish only freshwater, so I've never used marine grade wire and never had any wiring issues on my boats.
Numerous comments state you should have the same size battery, I would go with the 31 but that's me. Use the 27 somewhere else in the boat if possible. Batts should be close to same age and condition as well.