Each nucleotide consists of three components: a nitrogenous heterocyclic base, which is either a purine or a pyrimidine; a pentose sugar; and a phosphate group. The nitrogenous bases adenine, guanine, and cytosine are found in both DNA and RNA. Thymine is in DNA, but Uracil replaces it in RNA. So I hope it helps