A star like the Sun will end its days, as we have seen, as a red giant and then a white