You can buy a tomato at the grocery store in Port Sarim. The store is marked on your mini-map with a slice of bread.
If you use the world map, just orient yourself with it, since it includes a "you are here" marker much like the newcomer map.
Otherwise, start in Lumbridge and follow the main road north until it bends west. Take that turn and you should immediately see Fred's farm, with the sheep pen being the first thing visible. Keep following the road to a four-way intersection and continue west.
At the next intersection, take the path heading roughly south-west, the southernmost option, and follow it until you reach the port. For reference at that first crossroads: south leads to Draynor Village, north to Draynor Mansion, east back the way you came, and west toward Falador and Port Sarim.
You can also buy one at the Grand Exchange in Varrock. There is additionally a respawning tomato and cheese at the back of the bandit camp, around Wilderness level 24–26, though that comes with obvious risk.