It takes 404040 ink cartridges and 200200200 pages to print a book, and it takes 303030 ink cartridges and 808080 pages to print a magazine. Sarah wants to print books and magazines with at most 300300300 ink cartridges and 120012001200 pages. Let BBB denote the number of books she prints and MMM the number of magazines she prints.