A 24-ft length of wire is cut into two pieces. The shorter piece is 2 ft shorter than the longer piece. What is the length of the longer piece?