Two matrices a and b have in total 6 different elements (none repeated). How many different matrices a and b are possible such that the product ab is defined?