A 10​-foot piece of string is cut into two pieces so that the longer piece is 1 footfoot longer than twice the shorter piece. If the shorter piece is x feet​ long, find the lengths of both pieces.