A perfect number is a positive number that equals the sum of its divisors, excluding itself.
Divisors of 6 = 1, 2, 3
Divisors of 28 = 1, 2, 4, 7, 14, 28
In 6, the sum of divisors except itself, 1 + 2 + 3 is 6.
In 28, the sum of divisors except itself, 1 + 2 + 4 + 7 + 14 is 28.
Therefore, two perfect numbers are 6 and 28.