X/ 15-X/45= 1.8
2X/45= 1.8
X= 1.8*45/2
X=40.5
The distance between them is 40.5 kilometers.
You can ask questions if you don't understand. If it helps, please adopt it. Thank you!