Answer: There are 45 walnuts in the bag.
Step-by-step explanation:
Since we have given that
Ratio of the number of walnuts to the number of cashew = 5:6
Let the number of walnuts be 5x.
Let the number of cashews be 6x.
Since the number of cashews = 54
so, According to question, it becomes,
[tex]6x=54\\\\x=\dfrac{54}{6}\\\\x=9[/tex]
Hence, the number of walnuts would be
[tex]5x=5\times 9=45[/tex]
Therefore, there are 45 walnuts in the bag.