Put the values of the variables in place of the variables in the expression, then do the arithmetic.
[tex]8p+3q-18\\\\=8\left(\dfrac{1}{2}\right)+3(7)-18=\dfrac{8}{2}+21-18\\\\=4+21-18\\\\=25-18\\\\=\bf{7}[/tex]