Step 1: Understanding the Concept
Pollen mother cells are \(2n = 24\), so each male gamete has \(n = 12\). Root cells of the female plant are \(2n = 24\), so the egg has \(n = 12\).
Step 2: Embryo
Egg (12) + male gamete (12) \(= 24\) chromosomes (diploid).
Step 3: Endosperm
Two polar nuclei (12 each) + male gamete (12) \(= 36\) chromosomes (triploid).
Step 4: Compare the options
24 and 36, option (D).
Final Answer:
The embryo has 24 and the endosperm has 36 chromosomes.
\[ \boxed{\text{(D) }\text{24 and 36}} \]