ABC is a right triangle with AB = 2, BC = 3\sqrt{5}, AC = 7 and \angle ABC = 90^\circ. If \cos \angle BAC = \frac{a}{b}, where a and b are coprime positive integers, what is the value of a + b?