Assuming you meant
p^2-6p+8
then
find what 2 numbes multiply to get 8 and add to get -6
numbers are -2 and -4
(p-2)(p-4)
5a+3b = 24
(5+a)(3+b) = 49
The order of steps are different because one requires multiplication then addition while the other one requires addition then multiplication. But one sure thing is that they both need substitution.
1-(b)
2-(b)111600
3-(a)
4-(d)