carcass
I am not a fan of using formulas until and unless they are intuitive (logical) or useful in many cases. As for these two formulas, they are exactly same (obviously) and you don't need to learn them at all. All you need to do it draw the diagram and know exactly which region represents what and what is given to you. e.g. you must know which region is "only A", which region is "A", which region represents "A and B", which represents "Only A and B" etc. Depending on what is given, you can easily find what you need to find by just looking at the diagram. You can derive both the formulas on your own by just looking at the diagram.
As Bunuel noted too:
"I'd advise to understand the concept rather than to memorize formulas."
Go through the thread and ensure you understand everything. Thereafter, you can just draw the diagram and solve any problem.