Idioms

I struggled with many common idioms as a child.  Two I remember being confused by:

You can’t have your cake and eat it, too.

I didn’t understand how it was possible to eat a cake you didn’t have.

A friend in need is a friend indeed.

While I thought helping friends was great, I didn’t understand why a friend who was in trouble all the time was a good friend.