The diagonal of a rectangle and the diagonal of a square have the same length. The diagonal of the rectangle forms a 45 degree angle with one of its sides. R is the ratio of the area of the rectangle to that of the square. Find R^2.