Let's take the origin where the first friend began. Since this friend started walking with a constant speed of 0.5 m/s and is walking towards the friend (that we are going to assume is to the right) we have that its position at any given time is:
The position of the second friend starts at 50 m to the right and its motion is to the left, since it is walking with costant acceleration its position at any given time is:
to determine how long it takes for them to meet we equate the positions and solve for t:
Since time has to be positive we choose the positive solution for the equation.
Theredore, we conclude that it took 9.51 s for the friends to meet.