A total of $30,000 is to be invested in stock and bond. if the amount invested in bonds is four times that invested in stocks, how much is invested in each category.