To be certain, consult a repair manual specific to your 1987 Dodge Shadow's engine. These manuals provide diagrams and precise locations for all components. A Chilton's or Haynes manual would be a good investment if you plan to do more work on your car. You can also often find diagrams online by searching for "[your engine code] 1987 Dodge Shadow fuel filter location". (Remember to replace "[your engine code]" with the actual code found on your engine.)
Important Safety Note: Always disconnect the negative battery terminal before working near fuel lines to prevent sparks. Fuel is flammable and working with it requires caution.