Consider different scenarios for the first car while the second (moving from behind) was moving with speed .
1) The first car's brakes were activated. In this case we can say that most of the kinetic energy of the car moving from behind was transferred to destruction , and some part of it was transferred motion and to overcoming friction of the hit car:
where - braking distance (track) of the first car, - its speed after the driver put his leg off the braking pedal (because of safety considerations, can be determined from dash cam). We need more information for this case.
2) The first car' brakes weren't activated and it was resting. After the accident both cars were moving as one. In that case we can try to apply conservation of momentum in addition to the law of conservation of energy:
3) the first car's brakes weren't activated and it was in motion. In this case:
As a conclusion, we can say that the last case would bring the least serious consequences, but to estimate the situation quantitatively, we need more information about mass of the cars and at least velocity of the cars before the interaction and after the interaction).