Answer:
Explanation:
To find the greatest number of friends that Shiva has, we need to find the number of groups into which he can divide the Snickers and chocolates. Since both the Snickers and chocolates are being divided equally, we can find the number of groups by finding the least common multiple (LCM) of 40 and 36.
The least common multiple of 40 and 36 is the smallest positive integer that is divisible by both 40 and 36. To find the LCM, we can use the prime factorization method.
The prime factorization of 40 is 2^3 * 5
The prime factorization of 36 is 2^2 * 3^2
The LCM is the product of the highest powers of each prime number: 2^3 * 3^2 * 5 = 180
Thus, Shiva has 180 Snickers and chocolates in total, and he can divide them equally into groups of the same size. Therefore, the greatest number of his friends is 180/1 = 180 friends.