For the problem I tried dividing but my answers were not correct. How can I solve this problem then? Can someone help me out here please?

Answer:
8
Step-by-step explanation:
5 = 40
1 = x
Then we multiply by the rule of crisscrossing
5 x X = 40 x 1
5x = 40 then divide both by 5
X = 8