Teams from across Yorkshire have raised more than £40,000 for Forget Me Not children's hospice through a race challenge.