Mary has 37 sheep in her flock. If she makes one group of 7 sheep, how many equal groups of 3 sheep can be made with the remaining sheep?