Solution:
Concept: The cube identities: (a+b)3=a3+b3+3ab(a+b) and (a−b)3=a3−b3−3ab(a−b). Written out in full, (a+b)3=a3+3a2b+3ab2+b3 and (a−b)3=a3−3a2b+3ab2−b3.
Given: a+2b=5.
Step 1 — Cube both sides.
We cube a+2b with the identity (x+y)3=x3+y3+3xy(x+y), taking x=a and y=2b.
(a+2b)3=a3+8b3+3(a)(2b)(a+2b)
Step 2 — Put in a + 2b = 5.
Now we replace a+2b by 5 on both sides.
53125=a3+8b3+6ab×5=a3+8b3+30ab
Watch out: The sum a+2b appears twice in the cube identity. Replace it by 5 in both places.
Therefore, a3+8b3+30ab=125. Hence proved.