Answer:
The answer is: D) When he sells his vegetables at the farmer's market and when he sells the vegetables to the organic soup company.
Step-by-step explanation:
By definition, all the new final goods (goods that aren´t used to produce something else) produced and sold legally within the country are included in the GDP. 
Tom´s vegetables are; 
- new final goods, 
 - they were produced within the country, 
 - and are legal, 
 
So the moment he sold them to someone else they should be included in the GDP.