Josip has 4 toys - a car, a doll, a ball and a ship. He wants to put them on a line on a shelf. The ship has to be next to the car and the doll has to be next to the car. In how many ways can he arrange them so all the conditions would be fulfilled? 
选项为:A:$$2$$  B:$$4$$  C:$$5$$  D:$$6$$  E:$$8$$  请回答其中一个选项.