To find it, you'll need a repair manual specific to your 1987 Corolla's engine type. A repair manual will have diagrams showing its exact location. Searching online for a "1987 Toyota Corolla [your engine code] fuel filter location" might also yield helpful results with images. Note that the engine code is usually found on a plate in the engine bay.
Without knowing the specific engine code, it's impossible to give a more precise location. Be aware that working on fuel lines requires care to avoid fire hazards.