Answer
The result is legal.
Work Step by Step
We find:
$Comp_v \cdot w=\dfrac{v \cdot w}{|v|}\\ =\dfrac{(2i+6j) (5i+j)}{2i+6j}\\=\dfrac{10+6}{\sqrt 4 \sqrt {36}}\\=\dfrac{16}{\sqrt {40}} \approx 2.53 \lt 5$
This implies that the result is legal.