EAST PATCHOGUE, N.Y. (CBSNewYork) — A driver was rescued from a fiery wreck on Long Island thanks to two Suffolk County highway officers and two good Samaritans who jumped into action after police said her SUV collided with a truck and burst into flames.

It happened shortly after 4 a.m. Friday in the eastbound lanes of Sunrise Highway near exit 53 in East Patchogue.

READ MORE: Biden Says Omicron Variant Is 'Cause For Concern, Not A Cause For Panic'

Police said 19-year-old Mercedes Ramos was driving a Nissan Rogue when she slammed into the back of a roll-off container truck.

The SUV became stuck under the truck and was dragged for about one-quarter mile before the truck driver realized what happened, police said.

After the truck pulled off to the shoulder, police said the SUV burst into flames with Ramos trapped inside.

READ MORE: NYC 'Strongly Recommends' Masks In Public Indoor Spaces, As Omicron Variant Reaches North America

When Highway Patrol Officers Richard Gandolfo and John McCrory arrived at the scene, police said they jumped in to help two passing motorists who had stopped to try to free Ramos.

Together, police said they pulled Ramos from the burning vehicle. She was taken to the hospital with non-life threatening injuries.

Police said the two officers and one of the good Samaritans were also treated at the hospital for minor burns and smoke inhalation. The truck driver and other motorist who stopped to help were not hurt.

MORE NEWS: Reports: Mets, Max Scherzer Agree To Record 3-Year, $130 Million Deal

Authorities Ramos was later arrested and charged with driving while intoxicated. She was issued a field appearance ticket and will be arraigned at a later date.