The price for each apple is n. The number of the apple bought by Linda, Leo and Joe is x, y and z. Which of the following expressions represents the total cost of all the apples bought by the three people?

n + x + y + z

n + 3(x + y + z)

3n(x + y + z)

n(x + y + z)