A table is 6 feet long and 3 feet wide. You extend the length of the table by inserting two identical table leaves. The extended table is rectangular with an area of $\left(18+6x\right)$ square feet. Write an expression that represents the length (in feet) of the extended table.