First we calculate how many ways you can choose four books from a set of eight.
We use the formula n! / [r! * (n-r)!]
8! / [4! * 4!]
= 8*7*6*5 / 4*3*2*1 = 70 ways
Then we have to calculate how many permutations can be made from 4 objects which equals 4*3*2*1 = 24
So, the TOTAL number of ways = 70 * 24 = 1,680
Twice the difference between x and k is 2(x-k)
7,265 is the average of those two numbers, though i am not sure what the sign that is mentioned is