Solution:
Concept: Time = speeddistance. When two journeys are compared, write each time in terms of the unknown speed and use the given difference (or total) of the times to form the equation.
Given: 400 km each way; onward speed x km/h; return speed (x+40) km/h; the return journey takes 30 minutes less.
Step 1 — Part (i): onward journey.
The plane covers 400 km at x km/h, so the time is x400 hours.
Step 2 — Part (ii): return journey.
It returns at (x+40) km/h, so the time is x+40400 hours.
Step 3 — Form the equation.
The return journey takes 30 minutes (half an hour) less than the onward journey, and half an hour is 21 hour.
x400−x+40400=21
We multiply every term by 2x(x+40) and bring every term to one side.
800(x+40)−800x32,000x2+40x−32,000=x(x+40)=x2+40x=0
Step 4 — Solve the equation.
We split the middle term. We need two numbers whose product is −32,000 and whose sum is 40. They are 200 and −160, so we write 40x as 200x − 160x.
x2+200x−160x−32,000x(x+200)−160(x+200)(x+200)(x−160)=0=0=0
A product is zero only when one of its factors is zero, so we set each bracket equal to zero.
x+200=0orx−160=0
x=−200orx=160
A speed cannot be negative, so we reject x=−200 and keep x=160.
Check: The onward journey takes 2.5 hours and the return journey 2 hours, which is 30 minutes less.
160400−200400=2.5−2=0.5

Watch out: Change 30 minutes into 21 hour, because the speeds are in km per hour.
Therefore, (i) x400 hours; (ii) x+40400 hours; the equation is x2+40x−32,000=0, and x=160 (km/h).