Pegs are to be placed in the four holes shown, one in each hole. The pegs come in different colours and pegs of the same colour are identical. Calculate how many different arrangements of coloured pegs in the four holes can be made using

In one photograph Abel, Betty, Cally, Doug, Eve, Freya and Gino are the 7 members in the back row.
In how many different ways can these 7 members be arranged so that Abel and Betty are next to each other and Freya and Gino are not next to each other?
Three identical cans of cola, 2 identical cans of green tea, and 2 identical cans of orange juice are arranged in a row. Calculate the number of arrangements if:
Nine cards, each of a different colour, are to be arranged in a line.
The 9 cards include a pink card and a green card.
Consider all possible choices of 3 cards from the 9 cards with the 3 cards being arranged in a line.
(ii) Another set consists of 6 plastic mugs each of a different design and 3 china mugs each of a different design. Find in how many ways these 9 mugs can be arranged in a row if the china mugs are all separated from each other. (iii) Another set consists of 3 identical red mugs, 4 identical blue mugs and 7 identical yellow mugs. These 14 mugs are placed in a row. Find how many different arrangements of the colours are possible if the red mugs are kept together.
A choir consists of 13 sopranos, 12 altos, 6 tenors and 7 basses. A group consisting of 10 sopranos, 9 altos, 4 tenors and 4 basses is to be chosen from the choir.
(ii) In how many ways can the 10 chosen sopranos be arranged in a line if the 6 tallest stand next to each other?
(iii) The 4 tenors and 4 basses in the group stand in a single line with all the tenors next to each other and all the basses next to each other. How many possible arrangements are there if three of the tenors refuse to stand next to any of the basses?
A builder is planning to build 12 houses along one side of a road. He will build 2 houses in style A, 2 houses in style B, 3 houses in style C, 4 houses in style D and 1 house in style E.
(i) Find the number of possible arrangements of these 12 houses.
(ii) The 12 houses will be in two groups of 6 (see diagram). Find the number of possible arrangements if all the houses in styles A and D are in the first group and all the houses in styles B, C and E are in the second group.

Issam has 11 different CDs, of which 6 are pop music, 3 are jazz and 2 are classical.
How many different arrangements of all 11 CDs on a shelf are there if the jazz CDs are all next to each other?
Six men and three women are standing in a supermarket queue.
The diagram shows the seating plan for passengers in a minibus, which has 17 seats arranged in 4 rows. The back row has 5 seats and the other 3 rows have 2 seats on each side. 11 passengers get on the minibus.

A staff car park at a school has 13 parking spaces in a row. There are 9 cars to be parked.
A group of 15 friends visit an adventure park. The group consists of four families.
The group enter the park by walking through a gate one at a time.
In how many different orders can the 15 friends go through the gate if Mr Lizo goes first and each family stays together?
A group of 12 people consists of 3 boys, 4 girls and 5 adults.
How many different arrangements are there in which the 3 boys stand together and an adult is at each end of the line?
A security code consists of 2 letters followed by a 4-digit number. The letters are chosen from \{A, B, C, D, E\} and the digits are chosen from \{1, 2, 3, 4, 5, 6, 7\}. No letter or digit may appear more than once. An example of a code is BE3216.
(a) How many different codes can be formed?
(b) Find the number of different codes that include the letter A or the digit 5 or both.
A security code is formed at random.
(c) Find the probability that the code is DE followed by a number between 4500 and 5000.
Raman and Sanjay are members of a quiz team which has 9 members in total. Two photographs of the quiz team are to be taken.
For the first photograph, the 9 members will stand in a line.
(a) How many different arrangements of the 9 members are possible in which Raman will be at the centre of the line?
(b) How many different arrangements of the 9 members are possible in which Raman and Sanjay are not next to each other?
Mr and Mrs Ahmed with their two children, and Mr and Mrs Baker with their three children, are visiting an activity centre together. All 9 people stand in a line.
(c) Find the number of different arrangements in which Mr Ahmed is not standing next to Mr Baker.
(d) Find the number of different arrangements in which there is exactly one person between Mr Ahmed and Mr Baker.
Jai and his wife Kaz are having a party. Jai has invited five friends and each friend will bring his wife.
For a competition during the party, the 12 people are divided at random into a group of 5, a group of 4 and a group of 3.
Find the probability that Jai and Kaz are in the same group as each other.
A group of 6 people is to be chosen from 4 men and 11 women.
(a) In how many different ways can a group of 6 be chosen if it must contain exactly 1 man?
Two of the 11 women are sisters Jane and Kate.
(b) In how many different ways can a group of 6 be chosen if Jane and Kate cannot both be in the group?
Raman and Sanjay are members of a quiz team which has 9 members in total. Two photographs of the quiz team are to be taken.
For the second photograph, the members will stand in two rows, with 5 in the back row and 4 in the front row.
(c) In how many different ways can the 9 members be divided into a group of 5 and a group of 4?
(d) For a random division into a group of 5 and a group of 4, find the probability that Raman and Sanjay are in the same group as each other.
A bag contains 12 marbles, each of a different size. 8 of the marbles are red and 4 of the marbles are blue.
How many different selections of 5 marbles contain at least 4 marbles of the same colour?