39
Subtraction is fundamentally distance on a number line. The distance from 31 to 71 is 40, so the distance from 32 to 71 must be one less, a distance of 39.