let $A, B, C$ be sets so $B\cap C = \varnothing$. prove that $A^{B\cup C} \sim A^B\times A^C$.
I don't know how to start with solving this question. I know we need to define a function $A^{B\cup C} \to A^{B}\times A^{C}$ that is a bijective function but can't think of one. I'm looking for a simple function that can prove this theorem.