The ratio of guys to girls in the classroom is 8:1. There are 45 people in the classroom. How many of them are guys?

Let x = the number of guys

8/9 = x/45

9x = 360

x = 40