What driving licence do I need to drive a trailer?

MAM of the trailer is less than 750 kg (Driving licence B)
MAM of the trailer is greater than 750kg but MAM towing vehicle + trailer is maximum 3500 kg (Driving licence B)
MAM of the trailer is greater than 750 kg and MAM towing vehicle + trailer is between 3500 kg and 4250 kg (Driving licence B with code 96)
MAM of the trailer is greater than 750 kg and MAM towing vehicle + trailer is greater than 4250 kg and maximum 7000 kg (Driving licence BE)