A faint galaxy redshift survey to B=24