Answer:
He should perform a "testcross" by crossing the tomatoes in question with yellow-fruited plants.
If they are pure, all offpsring will be Red: RR x rr = all Rr
If they are hybrids (heterozygous), half the offspring will have yellow fruits: Rr x rr = 1:1 (red to yellow)
Explanation: