This pairing is based on the principle of complementary base pairing, where the two bases fit together perfectly due to their shape and chemical properties. Adenine and thymine (or uracil) form two hydrogen bonds between them, which helps to stabilize the DNA or RNA molecule.