Solution:
Step 1 — write the HCF and LCM in terms of p, q and r.
A=2r×3p×5qB=2p×3r×5pC=2q×3q×5p
Since p<q<r, take the lowest power of each prime for the HCF and the highest for the LCM:
HCF=2p×3p×5pLCM=2r×3r×5q
Step 2 — use the HCF to find p.
The largest number dividing all three is 30, so
2p×3p×5p=30⇒(2×3×5)p=301⇒p=1
Step 3 — use the LCM to find q and r.
The smallest number leaving remainder 2 when divided by each of A, B, C is 5402, so 5402 − 2 = 5400 is the smallest number divisible by all three — that is the LCM.
2r×3r×5q=5400
Factorising 5400:
5400=23×33×52
Matching the powers gives r=3 and q=2. (Check: p<q<r becomes 1<2<3. ✓)
Step 4 — substitute back.
A=23×31×52=600
B=21×33×51=270
C=22×32×51=180