Here's how to clean a MAF sensor:
Free-Auto-Repair-Advice: How to clean your MAF sensor
However, a lean code is usually caused by a vacuum leak. You've made the common mistake of thinking that the O2 sensor was the cause of the problem rather than the result. But at least they're not that expensive.
Now it's time for your friend to invest a few bucks in an online manual and do the diagnostics for the code he got. That will cost far less than throwing unneeded parts at it.
ALLDATADIY.COM - Do It Yourself Automotive Diagnostic & Repair Information Mitchell 1 eAutoRepair - Do-it-Yourself Repair Information