Step: Group the like terms
7𝑝, 8𝑝𝑞, −5𝑝𝑞, −2𝑝 and 3𝑝.
The terms that have same variables with same exponents are like terms.
Given terms can be grouped as:
Group 1 : 7𝑝, −2𝑝 and 3𝑝.
Group 2 : 8𝑝𝑞 and −5𝑝𝑞.
Since, they contain two variables with equal exponents.
Hence, 7𝑝, −2𝑝 and 3𝑝 are like terms and 8𝑝𝑞 and −5𝑝𝑞 are like terms.