The ratio of boys to girls of a class is 3 to 4. If there are 42 students, how many of them are boys? Show your work.