Barry's deck of cards has 40 blue and 70 red. Max has 40 blue cards, but the ratio of blue cards to red is 8:9. How many total cards does Max deck have?