James has 268 cookies to put into bags. Each bag holds 8 cookies.

If James uses as many of the cookies as possible, how many bags can he make, and how many cookies are left over?