A 45​-inch pipe is cut into two pieces. one piece is two times the length of the other. find the lengths of the two pieces.