To find the average speed, we must calculate the total distance covered by the object and then divide it by the total time of the motion.
The total distance covered by the object is

while the total time of the motion is

Therefore, the average speed of the object is
