The medicine contains 100 mg in 5 ml, that means that the concentration of the active ingredient is 100 mg/5 ml= 20 mg/ml
If we divide a concentration (in mg/ml) into a mass (in mg) we obtaine a volume (in mL). Thus, in order to calculate the mililiters of medicine which contain 150 mg of the active, we have to only divide mass (150 mg) into the concentration of active ingredient as follows: