A (adenine) pairs with T (thymine) and G (guanine) pairs with C (cytosine). In RNA, G pairs with C and A pairs with U (uracil).