Cindy had 5m dragonfruits. She bought another 7 dragonfruits and received 2m dragonfruits from her friends. Cindy's brothers then ate half of the remaining dragonfruits. How many dragonfruits had she left? Give your answer in terms of m in the simplest form.