Let x represent Ed’s age. We were told that Pam’s age is 10 less than Ed’s age. This means that Pam's age is x - 10
If the sum of their ages is 32, it means that
x + x - 10 = 32
2x - 10 = 32
2x = 32 + 10 = 42
x = 42/2
x = 21
Pam's age = 21 - 10
Pam's age = 11