Answer:
Since the speed can't be negative it was 60 km/h for the first stage and 80 km/h on the second stage, averaging 70 km/h for the whole course.
Explanation:
The speed of the truck for the first stage of the route is "x" km/h, while on the second one it raises to "x + 20" km/h. The time it takes to complete each stage is shown below:
![t_(stage 1) = (150)/(x)\\t_(stage 2) = (200)/(x + 20)](https://img.qammunity.org/2021/formulas/mathematics/high-school/lw7gm27b86flrhu9e84oe557fqkhpg8qzs.png)
The sum of these times must be equal to the total time of the trip, therefore:
![t_(stage1) + t_(stage2) = 5](https://img.qammunity.org/2021/formulas/mathematics/high-school/wiis5aj370766ldyt2dwh68gyyxgvfbs18.png)
![(150)/(x) + (200)/(x + 20) = 5\\(150*(x + 20) + 200*x)/(x(x + 20)) = 5\\150*x + 3000 + 200*x = 5*x*(x + 20)\\5*x^2 + 100*x - 350*x - 3000 = 0\\5*x^2 - 250*x - 3000 = 0\\x^2 - 50*x - 600 = 0\\x_(1,2) = (-(-50) \pm √((-50)^2 - 4*1*(-600)))/(2*1)\\x_(1,2) = (50\pm √(2500 + 2400))/(2)\\x_(1,2) = (50\pm √(4900))/(2)\\x_(1,2) = (50 \pm 70)/(2)\\x_(1) = 60\\x_(2) = -10](https://img.qammunity.org/2021/formulas/mathematics/high-school/piho623uo7l3qcljv3ive423kzja8uiqcl.png)
Since the speed can't be negative it was 60 km/h for the first stage and 80 km/h on the second stage, averaging 70 km/h for the whole course.