The ratio of boys to girls in a class are 3 to 7 . If there are a total of 30 students in the class , how many boys are there?