Ms. Bloom received 2 1/7 bags of chocolate for Valentine's from her class and 5/7 of a bag of chocolate from a few students from last year class. She shared 1 2/7 with the other teachers and took the rest of the chocolate home. How many bags did she take home?