Trimming a garage door a carpenter used 30 ft of molding in three pieces to trim a garage door. if the long piece was 2 ft longer than twice the length of each shorter piece, then how long was each piece?