Question: is mesa masculine or feminine?
Answer: The noun, mesa ("table"), is feminine in Spanish. Therefore, the article must be feminine too, and so la instead of el, is required. However, mesas is plural here, so we need las rather than la. The two adjectives, whether next to the noun or after the verb, have to "agree" with the noun as well.