What is my average speed?

I am travelling from A to B at a speed of 40 km/hr and from B to C at a speed of 60 km/hr. The ratio of distance $$AB : BC$$ is $$1 : 2$$. What is my average speed?