Town took the lead on 14 minutes when Daniel Broadbent raced clean through and slipped the ball past Kyle Letheren.
Two goals in two minutes after the break from Jack Smith and Chris Atkinson looked to have put the result beyond doubt but Adam and his fellow teenager Reuben Noble-Lazarus (heard of him?) were not quite finished.
On 71 minutes Lazarus sent in a great cross which Adam headed home and then 12 minutes later another fine cross this time from Steven Bennett was also met perfectly by Adam. The Town keeper kept it out but Adam bundled over the rebound.
There was just not enough time to grab another.
Full Match Report
BARNSLEY: Letheren, Grundy (Bennett 71), Potter, Branson, Atkinson, Crapper (Fearnehough 71), Taylor, Butterfield, Adam, Noble-Lazarus, El Haimour (Mellor 65).
Subs: Free, Scargill.
HUDDERSFIELD TOWN: Smithies, Clarke, Williams (Codman 61), Collins, Franks, Killock, Parker (Atkinson 61), Holdsworth (Heagey 61), Beckett, Hunt, Broadbent.