Mario's mistake is made when doing reciprocal.
7 / (2/3) =
I cannot divide by 2/3, but if I do reciprocal, I can multiply by 3/2. The seven comes first, so it should not be flipped.
Mario's mistake was when he flipped the 7 (or 7/1) to 1/7.
If 12 is shaded out of 18 then the fraction is 12/18. We then need to simplify it to get 2/3.
The answer is D) 2/3
To make the pattern it only uses a horizontal translation and a 180 rotation, so the second one.
Hope this helps.