solve the number problems