Two people were seriously injured in the accident.