In a class, the initial ratio of boys to girls was , and the total number of students in the class was less than 50. Later, exactly 5 new students joined the class, of whom at least one was a boy and at least one was a girl. After the addition, the ratio of the total number of boys to girls in the class became exactly . How many of the 5 newly added students were boys?