The total number of Relations that can be defined from a set A to set B is given as, According to your question, a Relation R is defined from set A to set A. Therefore, p=q=3
The total number of Relations that can be defined from a set A to set A is,