Answer:
See the attached figure which represents the problem.
As shown, AA₁ and BB₁ are the altitudes in acute △ABC.
△AA₁C is a right triangle at A₁
So, Cos x = adjacent/hypotenuse = A₁C/AC ⇒(1)
△BB₁C is a right triangle at B₁
So, Cos x = adjacent/hypotenuse = B₁C/BC ⇒(2)
From (1) and (2)
∴ A₁C/AC = B₁C/BC
using scissors method
∴ A₁C · BC = B₁C · AC
4k-6=-2k-16-2
4k-6=-2k-18
6k-6=-18
6k=-12
k=-2
7 is the range of this function