Identifying a pupil’s risk and resilience factors