Letp=(2,k) andq=(3,5), findksuch that the angle betweenpandqis π/4.

The question is under the vector section of the course elementary linear algebra. It's the first math course I've taken at university level. According to the key, the answer is 1/2,

but I see no way of getting there. Any help is appreciated.