The expression p(3 - 0.5x) is equivalent to the expression -24 + qx. In these expressions p and q are rational numbers. What is the value of q?