y^2 =a^2 +s^2 -2as\cos \frac{\pi}{4}\Longrightarrow y^2 =8+9-12\sqrt{2}\frac{\sqrt{2}}{2}\Longrightarrow y=\sqrt{5}