what does 40-9 divided by 3x7+5=?

Do you mean
(40 - 9)/(3*7 + 5) ?
If so then evaluate the numerator to get 40-9=31. Then evaluate the denominator to get 3*7+5=26. Then form the fraction using the two results.
Was that the question?