In high school tackle football how far does the football have to go to be considered leagal?

Legal for what? It has to be moved ten yards to establish a "first down" or a new set of downs. This occurs after a kick off return, a punt return, an interception, a fumble recovery, or when the ball has been moved past the first down marker.