In a town, there are four houses located at different distances from each other. Following are the distances:

The third house is 60 km apart from the first house.

The fourth house is 40 km apart from the second house.

The third house is 10 km nearer to the fourth house than it is to the second house.

Can you find out the distance between the fourth and the first house ?