He walks 50m from home to school and walks 50m again from school to house, so he walks 50m + 50m = <<50+50=100>>100 meters
If the total distance is 140m, the distance between the house and the market is 140m - 100m = <<140-100=40>>40 meters.
#### 40