In a U.S. presidential race, what is the main purpose of the primary elections?
A) To select the Vice President candidate
B) To determine the official candidates from each political party for the general election
C) To establish the national party platform
D) To decide on the final winner of the presidential election