If tanπ8=AB\displaystyle {\tan{{\frac{{\pi}}{{{8}}}}}}=\sqrt{{{A}}}-{B}, then, by using a half-angle formula, find
A=\displaystyle {A}=   ,
B=\displaystyle {B}=   .