Tommy, Shawn, and ricky had a total of 192 picture cards. In a game, Tommy lost some picture cards to Shawn and Shawn's picture cards doubled. Shawn lost some picture cards to ricky and ricky's picture cards doubled. Then they each had the same number of picture cards in the end. How many picture cards did each of them have at first?