|p-10|=20

p=30?

My teacher says there has to be 2 solutions for the absolute value

by definition:

p-10 = 20 OR -p+10 = 20
p = 30 or -p = 10
p = 30 or p = -10