We are looking at buying a 2002 ford explorer but the inspection says it has a bad oil leak from both valves
It's a common failure but there are upgraded gaskets (and silicone seal). Approximately $250 to $300 parts and labor. Just be certain that it's the Valve Covers and not the Intake Manifold. That can really run into money.
Search Ford Explorer Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
Ford Explorer Experts