Fortunately, there's a genetics person in the house!
Basically, it seems you may have gotten something written down wrong somehow, by how it's written out here.
Introducing mah sweetie!
Science!
----------------------------------------------------------------
Well, your first problem is that if you have two parents, and they're both homozygous at two different loci, then you can only have one possible F1 genotype:
RRYY x rryy --> RrYy
Notice how in RRYY you can only end up with RY as a gamete, and in rryy you can only end up with ry as a gamete. So no matter what, the F1 organism will have a genotype RrYy.
But for F2, you can produce a lot of different combinations:
RrYy x RrYy --> (all that stuff in your chart)
Going through the same process as for the parents (remember, each locus can move separately from the other), it might make more sense now how you can get RY, Ry, rY, and ry along each axis.
---------------------------------
Hope that's helpful.