Whichever ways.. and if so I would have to wait till next week so that I would make another deposits of 23trx to make 40trx as earlier suggested by him.
This could possibly work, but you should reach out to support first before you make the deposit to confirm if it will work out. You can reach out on discord (if you can download the app) or through email for help.
As you mentioned, you definitely have to deposit above the 40 TRX so you do not get another amount stuck.