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. Find the lengths of both pieces. What is the length of the shorter​ piece?