Please reason step by step, and put your final answer within \boxed{}.
Josephine receives a bill from the hospital for 18,000$. The bill consists of various components with the following percentage allocations: X% of the bill is for medication, Y% is for imaging tests, and Z% is for a surgical procedure. The remaining bill has P% earmarked for overnight stays and Q% for doctor's fees. There is also a fixed fee of 300$ for food, 450$ for consultation, and 600$ for physical therapy sessions. The rest of the bill is for the ambulance ride. Given X=35%, Y=15%, Z=25%, P=10%, and Q=5%, how much did the ambulance ride cost?
user