To find the cost of the fence around the garden, we need to determine the perimeter of the garden. The formula for the perimeter of a rectangular garden is P = 2l + 2w, where l is the length and w is the width.
Given that the length of the garden is 5 yards and the width is 2 yards, we can substitute these values into the formula:
P = 2(5) + 2(2)
P = 10 + 4
P = 14 yards
Next, we need to find the cost of the fence materials, which is $7 per yard of perimeter. We can multiply the perimeter (14 yards) by $7:
Cost = 7 * 14
Cost = $98
Therefore, the correct answer is $98.