Wales Under 18 beat France 29-27 at St Helens in their first capped international of the season.