Roselyn gives Mara three times as many books as she gives Rebecca and remains with 60 books. If Rebecca received 40 books, how many books did Roselyn have before?
Please reason step by step, and put your final answer within \boxed{}.
user