Gary found 72 shells and 40 coins at the beach. He wants to give them to some of his friends. Each friend will receive the same number of shells and the same number of coins. What is the greatest number of friends Gary can give shells and coins to? How many shells will each friend receive? How many coins?