Joelle had 9d pomegranates. She bought another 3 pomegranates and gave 3d pomegranates to her neighbours. Joelle's sons then ate half of the remaining pomegranates. How many pomegranates had she left? Give your answer in terms of d in the simplest form.