I have come across questions in R which deal with exponential and poisson distributions separately, but I am unsure about how to go about it when you need to use both in the same question
The number of customers attending a shop in (0,t) has Poisson distribution with parameter βt. The time that each customer spends in the shop has Exponential distribution with parameter λ. Find the probability that while a particular customer is shopping, maximum k other customer arrive. Use (any) β=λ and k=2. Use 10,000 samples.
How would this be solved?