Linda bought 8 packs of cards. There were 45 cards in each pack. After she had given 125 cards to Zandy, 23 to Ron and some to Phil, she had 2/9 of the cards left. How many cards did she give to Phil?

8*45 - 125 - 23 - x = 2/9 * (8*45)

solve for x