A fraction of a number: divide by the bottom, then multiply by the top.
1/4 of 8: 8 ÷ 4 = 2. 5/6 of 12: 12 ÷ 6 = 2, then 5 × 2 = 10.
Part of a part: tops times tops, bottoms times bottoms.