The Mathematics of Drugs and Solutions