If it's
2 wire motor(you report yours is), normally ya need/use relays (2 ea - SPDT type, see below) due to that one relay(the one not energized) to trim up for example, it's N.C. throw is grounding(Shown as "0V" below) one side of the motor winding, while the energized relay's N.O. throw supplies 12V(Shown as "+Ve" below) to the other side of the motor's winding. To trim down the relay's reverse this process thus reversing the current flow through the motor's windings thus turning the motor the other direction.

Drawn with both relays NOT energized.
You could use the standard auto/marine type solenoids(see below) w your 2 wire motor, but it would require 4, haven't seen that done on boats, not typically anyway. Might be a bit of a mess to wire too and should either side of the bridge have the pull up to 12V and pull down to Gnd solenoid's some how end up both "ON" at same time, POOF, smoke on the water!!...Google "H bridge".

Drawn with all solenoids NOT energized.
For
3 wire motors(not yours), you may and all that is required to use is either 2 - ea solenoids or 2 - ea. relay(SPST or SPDT would work too) due to the motor's winding is center tapped at ground(or 12V) and it only requires one side of the tap energized at a time to go up for example and then the other tapped side energized to trim down.