Impulsive and extended acceleration in the 1977 November 6 solar flare