From the diagram, we can see that
[tex]\begin{gathered} \sin \text{ 45 = }\frac{m}{5\sqrt[]{2}} \\ \frac{1}{\sqrt[]{2}}\text{ = }\frac{m}{5\sqrt[]{2}} \\ 1\text{ = }\frac{m}{5} \\ m\text{ = 1 x 5 = 5} \end{gathered}[/tex][tex]\begin{gathered} \cos \text{ 45 = }\frac{n}{5\sqrt[]{2}} \\ \frac{1}{\sqrt[]{2}}\text{ = }\frac{n}{5\sqrt[]{2}} \\ 1\text{ = }\frac{n}{5} \\ n\text{ = 1 x 5 = 5} \end{gathered}[/tex]