The 2 DNA strands run in opposite (antiparallel) directions; one in the 3' - 5' direction, the other 5' - 3'. The A-T and G-C base pairing provides complementarity of the two strands.
Thus, DNA follows these base-pairing rules: A always pairs with T, and G always pairs with C.