To calculate the average velocity of the car, we need to determine the displacement (change in position) and the time taken.
Given that the car moved 40 km east, the displacement is 40 km in the positive direction (east).
The time taken is 2 hours.
Using the formula for velocity:
Average Velocity = Displacement / Time
Average Velocity = 40 km / 2 hours
Average Velocity = 20 km/h
Therefore, the average velocity of the car is 20 km/h to the east.