The formula is correct. Both sides are equal to P(A
B). (Write down the fomulas for P(A
|
B) and P(B
|
A) and solve both for P(A
B)).