When a star like the sun evolves into a red giant, its core
A) expands and cools.
B) contracts and heats.
C) expands and heats.
D) contracts and cools.