To find it, you should:
1. Locate the underhood fuse/relay box: This is usually a black plastic box, often near the battery or firewall.
2. Consult your owner's manual: The manual will have a diagram showing the location of all fuses and relays, including the fuel pump relay. This is the *most reliable* method.
3. Look for markings: The relay itself might be labeled "Fuel Pump" or have a number corresponding to the fuel pump in your owner's manual's diagram. Relays are usually square or rectangular.
If you can't find it using the owner's manual or by visually inspecting the fuse box, a search online for "1997 Pontiac Trans Am fuse box diagram" will often yield images you can use to locate the relay. Remember to always disconnect your battery's negative terminal before working on electrical components.