You have to make a proportion:

needs to be set equal to \frac{x}{520}[/tex] because it is equal to the 5:8 ratio
Then cross multiply to solve for x:
520 × 5 = 2,600
8 × x = 8x
^^^set those equal to each other and solve for x
2,600 = 8x
^^^to isolate x divide both sides by 8
(2,600 ÷ 8) = (8÷8)x
325 = (1)x
325 = x
325 students out of the 520 students that attend the middle school use computers
Hope this helped!