If n(A)=pn(A) = pn(A)=p and n(B)=qn(B) = qn(B)=q, find the total number of functions from AAA to BBB.
qpq^pqp
pqp^qpq
pqpqpq
2pq2^{pq}2pq