Step 1: Match acids to their sources.
Each food has a typical acid we connect it with. This is just a recall question.
Step 2: Run through the options.
Acetic acid lives in vinegar. Citric acid is found in lemons and oranges. Tartaric acid comes from tamarind and grapes. Oxalic acid is the one tied to tomatoes and spinach.
Step 3: Focus on tomato.
In standard chemistry the tomato is taken as the classic natural source of oxalic acid, written as $HOOC-COOH$.
Step 4: Choose the acid.
So the answer for tomato is oxalic acid.
\[ \boxed{\text{Oxalic acid}} \]