Question: how does snape and lily have the same patronus?
Answer: Lily loved James, her "happiest" memory probably had something to do with him, so her patronus was a doe. And Snape was obsessed with Lily, so their patronuses were the same.