They both containing carbon, but only nucleic acids containing phosphorus is what correctly compares nucleic acids and carbohydrates.
This contains carbon, hydrogen and oxygen and serves as a source of energy to organisms.
Nucleic acids are similar to proteins and contain phosphorus while carbohydrate doesn't.
Read more about Carbohydrate here https://brainly.com/question/1178789
#SPJ1