Given two finite sets A and B such that n(A) = 3, n(B) = 3. Then total number of relations from A to B is _____.