Below is an instruction that describes a task. Write a response that appropriately completes the request in English. Please answer in English.

### Instruction:
Bryan starts exercising at home during quarantine. To start, he decides to do 3 sets of 15 push-ups each. Near the end of the third set, he gets tired and does 5 fewer push-ups. How many push-ups did he do in total?

### Response:
He did 3 sets of push-ups, so he would have done 3 * 15 = <<3*15=45>>45 push-ups if he hadn't gotten tired.
Since he got tired and did 5 fewer push-ups in the third set, he actually did 45 - 5 = 40 push-ups.
#### 40