Josephine receives a bill from the hospital for 5000$.  50 percent of the bill is for medication.  25 percent of the remaining bill is for overnight stays, and 175$ is for food.  The rest of the bill is for the ambulance ride.  How much did the ambulance ride cost?
Medication:5000(.50)=2500.
Overnight Stays:2500(.25)=625
2500-625=
<gadget id="calculator">2500-625</gadget>
<output>1_875</output>
1875.
Food:1875-175=
<gadget id="calculator">1875-175</gadget>
<output>1_700</output>
1700$
Ambulance ride:1700$

<result>1_700</result>