perimeter = length + length + width + width
P = 2L + 2W
2L + 2W = P
2L + 2(6.5) = 34
2L + 13 = 34
If all you need is the equation, then the answer is the line just above.
If you need to find the length, then we solve the equation for L as shown below.
2L = 21
L = 10.5
Answer: The length is 10.5 units.