A car travels a distance A to B at a speed of 40 km/h and returns back to A at a speed of 30 km/h. What is the average speed and average velocity of the whole journey ?