Naive Bayes

https://d2l.ai/chapter_appendix-mathematics-for-deep-learning/naive-bayes.html

I am unable to understand the below equation , can anyone explain ?

p_xy = P_xy * x + (1 - P_xy)*(1 - x)