Putting p=0 in L.H.S 5(0)+2=0+2=2
∵ 2 ≠ 17 therefore p=0 is not the solution.
Putting p=1 in L.H.S 5(1)+2=5+2=7
∵ 7 ≠ 17 Therefore, p = 1 is not the solution.
Putting p=2 in L.H.S 5(2)+2=10+2=12
∵ 12 ≠ 17 Therefore, p=2 is not the solution.
Putting p=3 in L.H.S 5(3)+2=15=17
∵ 17=17 Therefore, p=3 is the solution.