I can't be able to figure it this out.
The angle that has tan = a/b. (Remember tan= opp/adj) Is the angle at the lower right....cos of this angle would be adj/ hyp =b/ ((sqrta2+b2))