How to select topology for neural network?
You problem is linearly separable so you can use a single layer perceptron. 
Hidden units are necessary only for non linear problems (xor is a classic example). 

As for general guidelines, I don't think anyone has ever needed more than one hidden layer. Also the number of neurons in the hidden layer doesn't need to exceed the number of inputs.