Teenage rider successfully swops the classroom for the racecourse