How do I retrieve my passwords?

I

iMore Question

How do I retrieve my passwords

I've lost my Apple ID and iCloud password,so does anybody know how I would go about retrieving it?