To evaluate the expression \( 24 + \frac{54}{p} - q \) given \( p = 6 \) and \( q = 5 \), we first substitute the values of \( p \) and \( q \) into the expression.
-
Substitute \( p = 6 \) and \( q = 5 \): \[ 24 + \frac{54}{6} - 5 \]
-
Calculate \( \frac{54}{6} \): \[ \frac{54}{6} = 9 \]
-
Substitute this value back into the expression: \[ 24 + 9 - 5 \]
-
Simplify the expression: \[ 24 + 9 = 33 \] \[ 33 - 5 = 28 \]
Thus, the value of the expression is \( \boxed{28} \).