A 12 foot rope is cut into two pieces so that one piece is 3 feet less than twice the length of the other piece. how long is each piece?