Find the average speed of a train which is travelling x km in the 1st hour and 2y km in the 2nd hour.
(x+2y)/2 km/hr
Total distance travelled = Distance travelled in the 1st hour + Distance travelled in the 2nd hour.
= x + 2y km
Total time taken= 1+1= 2hrs
Average speed=Total distance travelledTotal time taken=x+2y1+1=x+2y2 km/hr