Answer:
z = 5x + 7y
Step-by-step explanation:
If x is the number of A pills, the amount of undesired substance is 5 mg times x or
5x
In the same way, if y is the number of B pills, the amount of undesired substance is 7 mg per pill, so the total will be 7 mg times y or
7y
Then, the function that represents the amount of undesired substance will be
z = 5x + 7y