For a single motor, size conductors at least 125% of the motor Full Load Current rating as listed in Table 430.247 of the NEC, that means a max of 28 amps is needed, its always a good idea to have a little overhead available in the lines and not run at max rating, so I would use #8 AWG wire if I were installing it, but #10 is perfectly fine, safe and legal