activity 1

see console

activity 2

If you have apples, and your friend has . Then together you have apples!