A 36-foot cable is cut into two pieces. One piece is three times as long as the other piece. How long is the longer piece?