The A train is the longest line in the system — 31 miles, from northern Manhattan through Brooklyn to Far Rockaway in Queens. New York City Transit, the arm of the Metropolitan Transportation Authority that operates the subways, says it is the longest subway line in the world.