For garden A, let width = w, length = L
For garden B, let width = x, length = y
So we are given the following:
L = 2+2w
x = w - 1
y = 2.5x
2w+2L = 2x+2y ------> w+L = x+y
Ok lets do some substituting into the perimeter equation

adding like terms...
0.5w = 5.5
w = 11
This means that:
L = 2+2(11) = 24
x = 11-1 = 10
y = 2.5x = 2.5(10) = 25
Final solution:
Garden A is 11 by 24
Garden B is 10 by 25