A carpenter used 29 ft of molding in three pieces to trim a garage door. If the long piece was 1 ft longer than twice the length of each shorter piece, then how long was each piece?