Here we calculate the Average Speed as = (Total distance travelled)/(Total time) for the answer.

Why is it wrong to calculate the two speeds seperately and take thier average?

Because the distance covered in the two cases aren’t the same.