Stuck in a life-or-death situation, two Kentucky teens saved the lives of their two classmates.

Brad Blevins and Bradley Miller were driving when a car behind them sped up and flew by their car, losing control and crashing into a tree. The two boys realized that the crashed vehicle contained their classmates. The driver was ejected out of the car and the passenger, Brandon York, was trapped in his seat. Blevins said there were flames and smoke shooting out of the car’s engine.

The two teens knew they had to take action, but passengers boots were melted to the car keeping him locked in place. The boys were able to pull him out of the flames. Only a few seconds after, the car exploded.

All the students are in recovery and back in school.