To find the total cost of the two trucks, you simply add their costs together.
First truck cost: $17,540.00
Second truck cost: $34,345.00
Now, add them:
\[ 17,540.00 + 34,345.00 = 51,885.00 \]
The company spent a total of $51,885.00 on the two trucks.