A certain drug is made rom only two ingredients: compound A and compound B. There are 5 milliliters of compound A used for every 8 milliliters of compound B. If a chemist wants to make 1287 milliliters of the drug, how many milliliters of compound B are needed?