Can you help me with this? I don't get it

Given:
Hugo plans to buy packs of baseball cards until he gets the card of his favourite player.
He has enough money to buy at most 4 packs.
The probability of each pack containing the desired card is 0.2.
The probability distribution is,
X 1 2 3 4
P(X) 0.2 0.16 0.128 512
Required:
The probability that Hugo buys at most 3 packs of cards.
Explanation:
The probability that Hugo buys at most 3 packs of cards.
[tex]\begin{gathered} P(X\leq3)=P(X=1)+P(X=2)+P(X=3) \\ P(X\leq3)=0.2+0.16_+0.128 \\ P(X\leq3)=0.488 \end{gathered}[/tex]Final Answer:
The probability that Hugo buys at most 3 packs of cards is 0.488.