Let x represent the number of pizzas cut into small slices. Then the ratio of small to large slices is ...
50 of the 90 pizzas were cut into small slices.
_____
<em>Check</em>
The 50 pizzas cut into 8 small slices each results in 400 small slices. The 40 pizzas cut into 6 large slices each results in 240 large slices. The ratio of small slices to large slices is 400 : 240 = 5 : 3.