Eric bought a few marbles and divided equally among four of his friends and his brother, Imer. Eric lost 2 marbles and has only 7 marbles left. How many marbles did Eric buy in all.