Students in a math class where 40% are males and 60% are females took a test. 50% of the males and 70% of the females passed the test. What percent of students passed the test?
a) 52%
b) 55%
c) 58%
d) 60%