I found a very similar problem in my uni physics textbook (it was in the challenge problems!)
Initial velocity of Person A is
0 m/s, as he starts from rest
Let the distance that Person A traveled during the acceleration phase of 2 seconds be
's'We know from kinematic formulas:



(
equation 1)
Velocity of the sprinter
after his 2 seconds of acceleration can be calculated by:



(
equation 2)
If we fiddle around with both equation 1 and equation 2, we come up with:

(
equation 3)
So, this Person A uses this constant
'v' velocity to complete his race. The distance he covers is
100-s, where
's' is the distance that guy accelerated for. We can use kinematic formulas to work out the part of constant velocity
We know that:
WE ARE NOW WORKING OUT THE CONSTANT VELOCITY PHASE WITH NO ACCELERATION, conditions have been changed, 's' will be
100-s, the distance he has to travel after his fit of acceleration, and his
initial velocity,
'u', will be the velocity he obtained from acceleration in the previous part, which is
'v' (I should be using proper physics notation, but it'd probably make it more confusing to you)
The time in this part will be
10.2-2 as well! No acceleration, keep that in mind

This is where we bring equation 3 back into play, substitute
'v' in for the
's'


And that's that. Work it out for the other guy. The place where I was going wrong, I thought both A and B were connected somehow. Seems not. Answer has been confirmed by graph method, as worked out by laseredd. Graph method is way easier, as may be proved below