I know how to calculate absolute functions without parameter:
⋅ | + 6| = 36
The question is how parameter p changes the number of solutions.
I tried to somehow calculate the discriminant for the positive and negative case but using GeoGebra I found out that if p is less than -2 than it has 3 solutions, however when it was -2 it had 2 solutions and finally when it was greater than -2 it had only one solution.