Lucas had $272 and Kelly had $804. Both of them spent the same amount of money. The ratio of Lucas' to Kelly's money than became 2:9. How much did they spend altogether?