Determine the location of the genes

In a certain plant, fruit is either red or yellow, and fruit shape is either oval or long. Red and oval are the dominant traits. Two plants, both heterozygous for these traits, were testcrossed, with the results listed in the table.
Determine the location of the genes relative to one another and the genotypes of the two parental plants.
Assign the following symbols:R = Redr = yellowO = Ovalo = long