Answer:
288 miles
Step-by-step explanation:
Time taken with traffic = 9 hours
Time taken without traffic = 4 hours
Speed with traffic = x mph
Speed without traffic = x+40 mph
Distance = Speed × time
Distance travelled in 9 hours
9x
Distance travelled in 4 hours
4(x+40)
Since both the distances are same

Speed with traffic = 32 mph
Distance travelled = 9×32 = 288 miles
∴ Shen lives 288 miles from the mountains