Let:
F be the number of five-dollar bills.
T be the number of ten-dollar bills.
Then, follow the steps to find T.
Step 01: Write an equation that represents the total number of bills.
Since 134 is the sum of the bills of five and ten dollars:

Step 02: Write an equation that represents the amount of money the cashier has.
The cashier has $790 dollar, which is equal to F multiplied by 5 plus T multiplied by 10:

Step 02: Isolate F in the equation from step 01 and substitute it in equation from step 02.
To isolate F, subtract T from both sides.

And substituting it in the second equation:

Step 03: Solve the equation from step 02 for T.

Subtract 670 from both sides, then divide the sides by 5.

Step 04: Knowing T, find F using the equation from Step 02.

Answer:
He has 24 ten-dollar bills.