First, determine the number of donuts that needs to be purchased for 8 people in the meeting by substituting 8 to the function, d(x).
d(8) = 3x + 2 = (3)(8) + 2 = 26
Use this value to be x in the function h(x).
h(26) = 2x + 7 = 2(26) = 59
Therefore, the manager should shed out 59 to buy the donuts.