If 1 x 1 = 1

   2 x 2 = 2

   4 x 4 = 6

   5 x 5 = 5

   7 x 7 = 9

  so 9 x 9 = 8

The unit row of the result of the correct calculation is the rule of the above calculations