J.R. S. answered 12/17/19
Ph.D. University Professor with 10+ years Tutoring Experience
If I understand the question, I think it would depend on the nature of the food or the medicine. For example, let us look at a drug. It would depend on if the active ingredient was acidic or basic. Most active ingredients are basic (because they generally contain an amine -NH2). We can represent this drug as R-NH2 and the stomach acid (HCl) simply as H+.
RNH2 + H+ <==> RNH3+
Ka = [RNH3+]/[RNH2][H+]
I'm not sure what else you are asked to do with this type of relationship. The correlation would be that the lower the pH of the stomach, i.e. the higher the [H+], the more RH3+ will be formed. This could be important depending on whether this form or the other form (RNH2) is better absorbed and/or the more active form of the drug.