A towards positive x-axis and B towards origin. The time at which distance between them is minimum and minimum distance will be