Answer by Professional Japanese Teacher
We introduce two phrases that you can use to express thanks to your colleagues. Polite Japanese is used according to the situation and your relationship with the other party.
Try using the first phrase if you are close with Yamada-san. Use the second phrase if you are not too close to him and you want to be more polite.
Nobody likes having work assigned by the boss at the end of the day but you did well under pressure. It’s encouraging to have a good colleague as well.