cos 2x + a sin x = 2a - 7
1 - 2 sin 2 x + a sin x - 2a + 7 = 0
so 2 sin 2 x - a sin x + 2a - 8 = 0
sin x = a ± √a2 - 8(2a - 8)4
= a ± (a-8)4
=2a - 84 (taking + sign.we discard - sign as sin x cannot be greater than 1)
= a - 4 2
now -1 ≤ sin x ≤ 1
so -1 ≤ a - 4 2 ≤ 1
so 2 ≤ a ≤ 6