In isosceles triangle ABC, E is the midpoint of base BC. Points F and G are on line segments AB and AC, respectively, and EFG is an equilateral triangle. If BC = 6 and AB = 5, then find FG.