Opal had 8r dragonfruits. She bought another 5 dragonfruits and gave 4r dragonfruits to her students. Opal's daughters then ate half of the remaining dragonfruits. How many dragonfruits had she left? Give your answer in terms of r in the simplest form.