Mary also baked a mocha flavored cake for her best friends. She divided it into 10 slices. If she gave 4 slices to Joan and 5 slices to Leslie, what fraction of the cake did she give away?