# Nakafa Framework: LLM
URL: https://nakafa.com/en/exercises/high-school/snbt/quantitative-knowledge/try-out/set-7/9
Exercises: Try Out - Set 7: Real exam simulation to sharpen your skills and build confidence. - Problem 9
---
## Exercise 9
### Question
export const metadata = {
title: "Problem 9",
authors: [{ name: "Nabil Akbarazzima Fatih" }],
date: "12/24/2025",
};
A code consists of vowels and digits in an alternating sequence, starting with a letter. The formation of the code follows these rules:
1. The first letter is not .
2. The first digit is an odd number.
3. The second letter is the letter .
4. The second digit is chosen from .
How many codes can be formed if no letters or digits can be repeated?
### Choices
- [x] $$72$$
- [ ] $$96$$
- [ ] $$120$$
- [ ] $$144$$
- [ ] $$168$$
### Answer & Explanation
export const metadata = {
title: "Solution for Problem 9",
authors: [{ name: "Nabil Akbarazzima Fatih" }],
date: "12/24/2025",
};
We need to form a code with the pattern **Letter - Digit - Letter - Digit**.
Let the slots for the code be:
Available sets:
- Vowels: ( letters).
- Odd digits for : ( digits).
- Choice digits for : ( digits).
Rules and Constraints:
1. .
2. .
3. No repetition of letters or digits is allowed.
Since must be odd and is chosen from a specific set, there is an overlap at the digit . We need to split the calculation into cases based on the value of .
#### Case 1 If The Second Digit Is 1
If we choose the digit for position :
1. (Second letter): Must be ( way).
2. (Second digit): Must be ( way).
3. (First letter): Vowel other than and other than (since is used in ).
- Choices: ( ways).
4. (First digit): Odd digit other than (since is used in ).
- Choices: ( ways).
Total ways for Case :
#### Case 2 If The Second Digit Is Not 1
If we choose a digit other than for position (which means it is even):
1. (Second letter): Must be ( way).
2. (Second digit): Chosen from ( ways).
3. (First letter): Vowel other than and other than .
- Choices: ( ways).
4. (First digit): Odd digit . Since is even, there is no conflict. All odd digits can be chosen.
- Choices: ways.
Total ways for Case :
#### Total Combinations
Sum the results from both cases:
Therefore, the number of codes that can be formed is .
---