text: You can calculate P(B) by using the formula \n\nP(A|B) = P(A and B) / P(B)\n\nI believe you cannot calculate P(A) - there is not enough input for this (donjuanin's answer would be correct only if A and B are independent - but you didn't mention this in your question)