Given the proximity of Controlled Airspace and available radar service, the A/G should have recommended the Pilot call the controlling frequency straight away, but it's not easy to push someone away when they are asking for help. Well done for recommending the correct course of action.
Hopefully the student will have learnt a valuable lesson about what to do when uncertain of position near controlled airspace.