Possibly you are making the account considering that the denominator of fractions that are squared are 10. Look:
[tex]\cos(2x)= \left(\dfrac{3}{\sqrt{10}}\right)^2- \left(\dfrac{1}{\sqrt{10}}\right)^2 = \dfrac{9}{10}-\dfrac{1}{10}=\dfrac{8}{10}=\boxed{\dfrac{4}{5}}[/tex]