Vector: ac×cos(-B)= 1, that is, cosB=- 1/2a.
So a 2-5)/4a =- 1/2a, a=√3.
The difficulty lies in the direction of the vector.