Let's define the number of books sold for K5 as \( x \) and the number of books sold for K6 as \( y \).
We know from the problem that:
-
The total number of books is 52: \[ x + y = 52 \]
-
The total revenue from the sales is K288: \[ 5x + 6y = 288 \]
Now, we can use the first equation to express \( x \) in terms of \( y \): \[ x = 52 - y \]
Next, substitute \( x \) into the second equation: \[ 5(52 - y) + 6y = 288 \]
Distributing the 5 gives us: \[ 260 - 5y + 6y = 288 \]
Combine the \( y \) terms: \[ 260 + y = 288 \]
Now, solve for \( y \): \[ y = 288 - 260 \] \[ y = 28 \]
Now that we have \( y \), the number of K6 books sold, we can find \( x \): \[ x = 52 - y = 52 - 28 = 24 \]
To summarize, the number of K6 books sold is \( \boxed{28} \).