Remember that with algebra and math in general, you always multiply when two or more numbers and/or letters are right next to each other separated by parentheses. Going based off that, you would multiply 6 and p to get 6p, 6 by 5 to get 30, and 6 by 6q to get 36q.
Hopefully this helps!
-Coconut;)