We are told that the amount of medicine (m) is proportional to the patient's body weight (w). Hence:

We can re-write this as:

Given:
A patient weighing 116 pounds requires 126 milligrams.
Substituting the given data:

The equation relating m and w is thus:

The amount of medicine for a patient weighing 174 pounds can be calculated by substitution:

Hence, the amount of medicine is 189 milligrams