To find out how many cups of strawberry syrup are needed to make 108 milkshakes, we can first determine how much syrup is needed for one milkshake and then multiply that by 108.
The recipe states that it takes \( \frac{1}{3} \) of a cup of strawberry syrup to make 12 milkshakes.
To find the syrup needed for one milkshake: \[ \text{Syrup for one milkshake} = \frac{1}{3} \text{ cup} \div 12 = \frac{1}{3} \text{ cup} \times \frac{1}{12} = \frac{1}{36} \text{ cup} \]
Now, to find the syrup needed for 108 milkshakes: \[ \text{Syrup for 108 milkshakes} = \frac{1}{36} \text{ cup} \times 108 = \frac{108}{36} \text{ cups} = 3 \text{ cups} \]
Therefore, Margaret needs 3 cups of strawberry syrup to make 108 milkshakes.
The correct answer is: D. 3