On Exercise 21 Weights and inputs, how are we meant to determine which is the weights and which ...

On Exercise 21 Weights and inputs, how are we meant to determine which is the weights and which is the inputs?
I thought the first number in each pair was the input and so it marked that i had got all the questions wrong (except the intercept)