Step 1 Given
A={x,y,z} and B={1,2}
Step 2 Cartesian product of sets A and B
A×B ={(x,1),(y,1),(z,1)(x,2),(y,2),(z,2)}
Step 2 Finding number of subsets of A×B
As n(A × B)=6
Mumber of subsets A×B will be = 2n(A×B) = 26
Therefore, number of relations from A to B is = 26