In the rectangular front face, AB and BF meet at a given square corner, so they are perpendicular.
Lines AB and EF are opposite edge lines of the front face, and AB and CD are opposite edge lines of the bottom face, so both pairs are parallel by the givens.
For AB and FG, the sole candidate for a common plane is the front-face plane through noncollinear A,B,F.
It excludes G, which lies in the parallel back-face plane, so those lines are skew.