Here, velocity of A, VA = 1.5 m/s towards B. Velocity of B, VB = 1.125 m/s perpendicular to AB. Distance between them, l = 4.5 m
Let they are closest after time t seconds. And A & B reaches to A' & B' respectively.
Then, distance travelled by A = 1.5×t
So, A'B = (4.5 - 1.5×t)
And distance travelled by B = 1.125×t
So, BB' = 1.125×t
At this instance, the distance between A & B is A'B'
In

A'BB' :
(A'B')2 = (A'B)2 + (BB')2
= (4.5 - 1.5t)2 + (1.125t)2
= 3.515625t2 - 13.5t + 20.25
= (1.875t)2 - 2×1.875t×3.6 + (3.6)2 + 20.25 - (3.6)2
= (1.875t - 3.6)2 + 7.29
Or, A'B' =

Now, A'B' is minimum when (1.875t - 3.6)2 = 0
And, at this time, distance between them,

THANKS