(B) If you are accessing through ROW major order then for every 128 entries there is only 1 page fault
EX: in frame 2:
X[0][0],X[0][1]..........X[0][64], X[1][0],X[1][1]..........X[1][64].
only X[0][0] is page fault
and total references are 64*64
so total page faults are (64*64)/128=32
OR you can say that The inner loop causes only one page fault for every other iteration of the outer loop. Hence, 32 page faults occur.
(A) If you are accessing through COLUMN major order then for every 2 entries there is only 1 page fault
EX: in frame 2:
X[0][0]X[0][1]..........X[0][64], X[1][0],X[1][1]..........X[1][64].
only X[1][0] is hit
and total reference are 64*64
so total page faults are (64*64)/2=2048
OR you can say that The inner loop causes 32 page faults for every iteration of the outer loop. Hence, 2048 page faults occur.