in a certain city , 60 percent of the registered voters are democrats and the rest are republicans . in a mayoral race , if 70 percent of the registered voters who are democrats and 20 percent of the registered voters who are republicans are expected to vote for candidate a , what percent of the registered voters are expected to vote for candidate a ?
"say there are total of 100 registered voters in that city . thus 60 are democrats and 40 are republicans . 60 * 0.70 = 42 democrats are expected to vote for candidate a ; 40 * 0.20 = 8 republicans are expected to vote for candidate a . thus total of 42 + 8 = 50 registered voters are expected to vote for candidate a , which is 50 % of the total number of registered voters . answer : a"
add(multiply(60, divide(70, const_100)), multiply(subtract(const_100, 60), divide(20, const_100)))