We have expression:
4(2x)+4(x)
Number 4 represents number of legs for each table.
x represents length of shorter legs, for a coffee table
2x reoresents length of longer legs, for a kitchen table
4(x) represents 4 times the length of one leg for coffee table. This is the amount of material needed for all 4 legs of coffee table.