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

5x+8x = 260

x=20
so, Ellen invested $100 and Bob $160