Ms. Kiyama is fed up with all the legos around her living room so she decides to do something about it. She starts by getting rid of 23 of them because they are cracked. She then takes what is left and splits them evenly between the living room, James’ room, and Christopher’s room. When grandma comes over and sees how they can’t complete their creations with the legos in each room, she doubles each set for Valentine’s Day, so that each room contains 78 legos. How many legos were there to start?