For fractions in their lowest terms:
HCF of fractions = HCF of the numerators ÷ LCM of the denominators
LCM of fractions = LCM of the numerators ÷ HCF of the denominators
A way to remember it: the HCF should be small, so it takes the small part on top (HCF) and the big part below (LCM). The LCM should be large, so it is the other way round.
Why this works: a fraction p/q divides a/b exactly when (a/b) ÷ (p/q) = aq/(bp) is a whole number. That needs p to divide every numerator and q to be a multiple of every denominator. The largest such fraction therefore has the biggest possible p (the HCF of the numerators) over the smallest possible q (the LCM of the denominators). The LCM argument runs the same way in reverse. Once you see this, you never need to memorise which way round the rules go; you can rebuild them in a few seconds during the exam.
Worked example 1: HCF of 2/3, 4/9 and 8/15
HCF of 2, 4, 8 is 2. LCM of 3, 9, 15 is 45. HCF = 2/45.
Worked example 2: LCM of the same fractions
LCM of 2, 4, 8 is 8. HCF of 3, 9, 15 is 3. LCM = 8/3.
Check: 8/3 ÷ 2/3 = 4, 8/3 ÷ 4/9 = 6 and 8/3 ÷ 8/15 = 5, all whole numbers, so 8/3 is a common multiple of the three fractions.