4468 km
\begin{aligned}l &=\frac{\theta}{360} \times 2 \pi r \\&=\frac{40}{360} \times 2 \pi \times 6400 \\&=4468.0 \\\text { Distance } &=4468 \mathrm{\,km}\end{aligned}