Textbooks have an average mass of 0.9 kg and notebooks have an average mass of 0.6 kg. To avoid straining his back, Stephen never puts more than 6 kg of books in his backpack. Write an equation to represent the relationship between the number of each type of book and the total maximum mass.