Q1. no of elements in A = m
we have to find no. of ordered pairs (x,y,z) x,y,z belonging to A
So, the total no. of pairs = mC1*(m-1)C1*(m-2)C2*3!
which u shud get as (m3 - 3m2 + 2m)*6
But if u want just selection of pairs then it wud be m3 - 3m2 + 2m