Ivan and Lori collected some bookmarks in a ratio of 7:10. Then, Ivan collected some more bookmarks 3 times as his original bookmarks and Lori collected some bookmarks 60% of his original ones. As a result, Ivan had 45 more bookmarks than Lori, how many bookmarks did they collect altogether in the end?