Janet has 9 cards more than Brenda. Mara has twice as many cards as Janet. How many cards do they have in all if Mara has 40 cards less than 150?
Please reason step by step, and put your final answer within \boxed{}.
user