The number of squares is $1^2+2^2+\dots+ 8^2=\frac{8\times9\times 17}{6}=204$ and the number of rectangles is $\binom{9}{2}^2=36^2=1296$. So the answer is $\frac{204}{1296-204}=\frac{17}{91}\approx 0.1868$
The number of squares is $1^2+2^2+\dots+ 8^2=\frac{8\times9\times 17}{6}=204$ and the number of rectangles is $\binom{9}{2}^2=36^2=1296$. So the answer is $\frac{204}{1296-204}=\frac{17}{91}\approx 0.1868$