# A motorcyclist drives from A to B with a uniform speed of $30\ kmh^{-1}$ and returns back with a speed of $20\ kmh^{-1}$. Find its average speed.

#### Complete Python Prime Pack for 2023

9 Courses     2 eBooks

#### Artificial Intelligence & Machine Learning Prime Pack

6 Courses     1 eBooks

#### Java Prime Pack 2023

8 Courses     2 eBooks

Let $D$ be the distance from $A$ to $B$.

As given, Speed of the motorcyclist from $A$ to $B$ $v_1=30\ kmh^{-1}$

Therefore, time taken from $A$ to $B$ $t_1=\frac{distance}{speed}=\frac{d}{30}\ h$

And also given, speed from $B$ to $A$ $v_2= 20\ km h^{-1}$

Therefore, time taken in return $t_2=\frac{d}{v_2}=\frac{d}{20}\ h$

Therefore, total distance travelled $=d+d=2d$

Total time taken $t_1+t_2=\frac{d}{30}+\frac{d}{20}=\frac{50d}{600}=\frac{d}{12}$

Therefore, average speed $=\frac{total\ distance}{total\ time}$

$=\frac{2d}{\frac{d}{12}}$

$=\frac{2d\times12}{d}$

$=24\ kmh^{-1}$

There, the average speed of the motorcyclist is $24\ kmh^{-1}$

Updated on 10-Oct-2022 13:28:42