George had some cards at first. He gave 1/5 of his cards to his brother and 1/4 of the remainder to his neighbor. After that, George bought 77 cards and had a total of 233 cards in the end. How many cards did George have at first?
g = original cards
gives 1/5 to brother leaving him 4/5 g
gives 1/4 of this amount leaving him 3/4 (4/5 g )
adds 77 cards 3/4 (4/5 g) + 77 = 233 solve for g = 260 cards originally