The track shown in figure ends in a circular track of radius r with centre at O. A small solid sphere of mass m rolls from rest without slipping from a point A at a height h=6r from the level ground. The speed of the sphere when it reaches a point B at height r above the level ground is :