How did Prof Ng get w(1) = [5 0]
By inspection, since he has not yet presented how to compute the weight values.