Artificial intelligent assistant

maximize a posteriori I have been looking at this explanation of writing a posterior in terms of likelihood and prior can any one please explain the detailed steps to go from one line to the next? I started to believe that there is something wrong ![enter image description here]( this is coming from slide 23 in this lecture <

First, by the fact $p(A, B \mid C) = p(A \mid B, C)\cdot p(B\mid C)$, we have $$ p(w \mid y, X) = \frac{p(y \mid w, X) p(w \mid X)}{p(y \mid X)} \tag{$1$} $$ Next, since $w$ is independent of $X$, we have $$ p(w \mid X) = p(w) \tag{$2$} $$ Combining $(1)$ and $(2)$, you can get the second line.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy fcd69064151d2efb5ee06036df06fa80