Find the perfect, deficient and abundant number between 1 and 30

Perfect number: 28 (1+2+4+7+14 = 28, factors of 28 add up to 28)

Deficient number: 21 (1+3+7 = 11 < 21, factors of 21 add up to less than 21)

Abundant number: 12 (1+2+3+4+6 = 16 > 12, factors of 12 add up to more than 12)