Try to keep calm and don’t rush. Make sure that you’ve shared all the relevant details with the other driver before you leave the scene. If possible, take pictures and note the positions of all the vehicles involved.
You may also be interested in these theory test questions