You won't get any demerits on your license. It's never your fault when some fuckhead rear-ends you. Your friend, however, will get demerits because she was the one who did the rear-ending.
I know, 'cuz my mom got in an accident twice in less than two months in our new car. I think new cars attract bad drivers.