\(\dfrac{a}{12}=\cos45^\circ=\dfrac{\sqrt{2}}{2}\), so \(a=6\sqrt{2}\).
\(\dfrac{b}{12}=\sin45^\circ=\dfrac{\sqrt{2}}{2}\), so \(b=6\sqrt{2}\).