Sure, let's break the problem down step-by-step.
1. First, simplify the expressions inside the brackets:
- [tex]\( 20 - 2 \)[/tex]
- [tex]\( (20 - 2) \div 2 \)[/tex]
- [tex]\( 40 - 10 \)[/tex]
- [tex]\( (40 - 10) \div 5 \)[/tex]
2. Start with the first part inside the bracket:
[tex]\[
20 - 2 = 18
\][/tex]
3. Then divide by 2:
[tex]\[
18 \div 2 = 9
\][/tex]
4. Next, handle the second part inside the bracket:
[tex]\[
40 - 10 = 30
\][/tex]
5. Then divide by 5:
[tex]\[
30 \div 5 = 6
\][/tex]
6. Now sum the results inside the brackets:
[tex]\[
9 + 6 = 15
\][/tex]
7. Now the entire expression simplifies to:
[tex]\[
5 + 15 - 6 \times 3 \div 2 + 5
\][/tex]
8. Handle the multiplication and division next:
[tex]\[
6 \times 3 = 18
\][/tex]
[tex]\[
18 \div 2 = 9
\][/tex]
9. Plug this result into the expression:
[tex]\[
5 + 15 - 9 + 5
\][/tex]
10. Finally, perform the addition and subtraction from left to right:
- Add the first two terms:
[tex]\[
5 + 15 = 20
\][/tex]
- Subtract the next term:
[tex]\[
20 - 9 = 11
\][/tex]
- Add the last term:
[tex]\[
11 + 5 = 16
\][/tex]
So the answer to the given expression is:
[tex]\[
\boxed{16}
\][/tex]