Conditional probability involving a geometric random variable

Let ${X}_{1},...$ be independent random variables with the common distribution function F, and suppose they are independent of N, a geometric random variable with parameter p. Let $M=max({X}_{1},...,{X}_{N})$. Find $P(M\le x)$ by conditioning on N.

Let ${X}_{1},...$ be independent random variables with the common distribution function F, and suppose they are independent of N, a geometric random variable with parameter p. Let $M=max({X}_{1},...,{X}_{N})$. Find $P(M\le x)$ by conditioning on N.