A rectangle has length (x-3) cm and width 4 cm. The perimeter of the rectangle is 40 cm. Find the length.

2(x-3 + 4) = 40