Bobs deck of cards contains 40 blue cards and 70 red cards. Max's deck has the same number of blue cards, but his ratio of blue to red cards is 8:9. How many total cards does Max's deck contain?