[tex] \frac{45}{40} = \frac{9}{x} \\ = > \frac{40}{45} = \frac{x}{9} \\ = > x = \frac{40}{45} \times 9 \\ = > x = \frac{40}{5} \\ = > x = 8[/tex]
x = 8