The two trim pumps are on separate circuits. There are two fuses for each both located at the pump, one on the buss bar between the soleniod's and the other is an inline fuse at the round plug connector for the helm switches.
If both stopped working at the same time it's most likely either a common ground or they both connect to the battery at the same point and the connection have become loose.
Google Mercruiser trim pump wiring diagram
1997 2400 SCR
5.7 Vortec / Bravo 2