So : 5 = 6(1q - 5) - 19.
You would distribute the number outside the parentheses to the numbers inside the parentheses. This would leave you with :
5 = 6q - 30 - 19
5 = 6q - 49
Add 49 on both sides, because you're trying to isolate q, and you need to rid all the numbers on that side. Adding 49 on both sides would leave you with :
54 = 6q
Divide both sides by 6, because again, inverse operations, and you need to isolate the q. Divide both sides by 6, and you get :
9 = q, which turns into q = 9