A rectangle is x inches wide and 3y inches long. If the length plus twice the width is 12 inches and the length plus the width is 9 inches, what is the length