A ​27-inch piece of steel is cut into three pieces so that the second piece is twice as long as the first​ piece, and the third piece is three inches more than five times the length of the first piece. Find the lengths of the pieces.