Although we can first calculate the cost of one toy and then can multiply it with 40 to get the result.
but we will solve it with chain rule so that we can prepare ourself for other complex problems which we can solve
easily by applying this rule.
Let the required cost be Rs. x
More toys means More Cost. (Direct Proportion)
So 40 toys will cost Rs 640