An astrophysicist is studying two stars in a binary system. Star A glows red, while Star B glows violet.
Explain why Star B is at a higher surface temperature than Star A.