Usha had 5p dragonfruits. She bought another 7 dragonfruits and received 3p dragonfruits from her cousins. Usha's sisters then ate half of the remaining dragonfruits. How many dragonfruits had she left? Give your answer in terms of p in the simplest form.