The correct answer is B. by the total number of House and Senate representatives.
Each state is allocated a number of Electoral College votes equal to the total number of its Senators (always 2) plus the number of its Representatives in the House, which can vary based on the state's population.