The question asks for states not bordered by the Pacific—but phrased as "bordered on the west of pacific ocean." Interpreting as: "Which three states lack Pacific coastline?"
Maine, Vermont, and West Virginia — none touch the Pacific. But this is a trick set: 47 states don't border the Pacific. Only 5 do: Alaska, Washington, Oregon, California, Hawaii.
Maine (Atlantic), Vermont (landlocked), West Virginia (landlocked) are simply three examples of the 47 non-Pacific states. The question likely originated from a quiz asking "Which of these is not a Pacific state?" with those three as distractors among Pacific states.
Pacific coastline = 5 states. Gulf of Mexico = 5 states (TX, LA, MS, AL, FL). Atlantic = 14 states. Arctic = 1 (AK). Landlocked = 27 states. Great Lakes = 8 states.
If you're in Maine, Vermont, or West Virginia, the Pacific is a continent away.