Two business partners, Ellen and bob, Invested money in their business at a ratio of 8 to 9. Bob invested the greater amount. The total was $340. How much did each partner invest?