By air, the distance from Melbourne, Australia, to Cairo, Egypt, is 2338 miles more than the distance from Madrid, Spain, to Bangkok, Thailand. If the total of these distances is 15,012 miles, find the distance from Madrid to Bangkok.
let x=distance from Madrid to Bangkok
therefore the distance from Melbourne to Cairo is x+2338 (this distance is 2338 miles more than the distance x from Madrid to Bangkok)
the total of these distances is 15,012 miles