A mile has #8# furlongs, each of which has #220# yards i.e. a mile has #8xx220=1760# yards. But as one yard has #3# feet, one mile has #3xx1760=5280# feet.

Hence #1000# feet is #1000/5280# miles. As numerator and denominator, both are divisible by #40#.