First we need to write the balanced equation for the reaction. In this case it is Mg + 2HCl -> MgCl2 + H2. Now we need to work out the maximum theoretical yield of MgCl2
When differentiating a function that is the sum of three different parts we can differentiate each part separately:
a) 2x3 is easy to differentiate. We remember the rule d/dx[axb