Sides of an obtuse triangle AB, BC, and AC have midpoints E, F, and D. G is the point of intersection of all 3 medians. If AB = 7, BC = 9, and BG = 3 then what's the length of AC? (AC is the longest side)