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