Question 1132948
.
The TWIN problem was solved under this link


<A HREF=https://www.algebra.com/algebra/homework/Permutations/Permutations.faq.question.1132853.html>https://www.algebra.com/algebra/homework/Permutations/Permutations.faq.question.1132853.html</A>


https://www.algebra.com/algebra/homework/Permutations/Permutations.faq.question.1132853.html



It is your TEMPLATE.
Read it attentively, and then solve your problem in a similar way.


You have a rare opportunity to develop further your skills by solving the problem, to which you have clear instructions.