A cube of edge 6 units has a corner at the origin O, as in the figure. The red line is the body diagonal OG, and the corner A lies on the x-axis at (6,0,0). The dashed blue segment from A meets OG at a right angle at the point F. Find the value of AF2, in square units.