If there are 14 boys and 10 girls in a class, the ratio of boys to girls is

14 : 10 = 7 : 5

The total number of students in a class would be 14 + 10 = 24.

Then, the fraction of boys in a class is `14/24 = 7/12.`

The fraction of girls in a class is `10/24 = 5/12.`

In other words, the ratio of boys to girls is 7:5, the ratio of boys to all students is 7:12 and the ratio of girls to all students is 5:12.