Problem on the past qualifier asks to find the value of h for which the vectors are linearly dependent:

For vectors to be linearly dependent they need to be products of each other multiplied by some coefficient. By mental math I found that with vectors are linearly dependent if .

Would someone please comment on the correctness and point me to the formulaic way to find such solutions?