Walter in Megaton asks you to fix three leaking pipes found around the town. A Repair skill of 30 is required to fix the pipes. After the pipes in Megaton are fixed, Walter offers to buy scrap metal from you to maintain them.
The scrap metal you give to Walter immediately disappears, as you cannot pickpocket scrap metal back from him, unlike in The Outcast Collection Agent. It is not even on his corpse.
If you have XP bonuses (from Well Rested and/or Swift Learner), you should note that the game rounds the bonus up. Thus, with a 10% XP bonus, you will receive 11 XP for all "pairs" of scrap metal (because (2 * 5) * 1.1 = 11), and 6 XP for an "odd" piece of scrap metal (5 * 1.1 = 6, since it rounds up).
Scrap metal can be found throughout buildings in the Capital Wasteland and can be purchased from various merchants.
If you have The Pittadd-on, a better use for the scrap metal might be to use the ammo press in the Mill.
If Mothership Zeta is installed and all robot pods are activated with their inhabitants destroyed it is quite possible to leave the ship with 55+ scrap metal.
Although Walter mentions that without the scrap metal the pipes will eventually burst again, the pipes will never again break after fixing them for the first time, even if you never give him any scrap metal.
If you want to sell more than 1000 pieces of scrap metal (added via console to recalibrate XP), Walter will take ONLY 1000 pieces of scrap metal from your inventory. Though, he will give you caps and XP for ALL pieces of scrap metal existing in inventory when you do the transaction.