Final answer:
The length of the rectangular garden is 13 yards.
Step-by-step explanation:
To find the length of the rectangular garden, we can use the formula for the perimeter of a rectangle, which is equal to two times the width plus two times the length.
In this case, we know that the width is 6 yards and the total amount of string used for the perimeter is 38 yards.
Let's solve for the length:
2(6) + 2L = 38
12 + 2L = 38
2L = 38 - 12
2L = 26
L = 26/2
L = 13
The length of the garden is 13 yards.