There are at least 10 freshmen in a room. The ratio of freshmen to sophomores to juniors in the room is 3 to 5 to 12. 40 percent of the freshman in the room are taking history, 60 percent of the sophomores in the room are taking history, and 36 percent of the total number of freshman, sophomores, and juniors in the room are taking history.