If p = –4 and q = 2, evaluate 3p2 + 5q.

just substitute and then evaluate

3p2 + 5q (you probably meant 3p^2 + 5q

=3(-4)^2 + 5(2)
= 3(16) + 10
= 58