Two buttons, one changes the color of the other

Dear Community,

I can easily change the color of a button when clicked. What i would like is:

I have two regular buttons (b1, b2), both blue.

I press b1 and it turns red, b2 remains blue.

Once i press b2 : b2 turns red, b1 reverts to blue.

Could you help me implement this?