Coloring identical objects

I have a drawing with 2 identical objects and when I color 1 of them the other changes to the same color. How can I separate the 2 objects?

The two objects may be grouped together.
Right-click on them and select Ungroup (Ctrl+Alt+Shift+G).
You can now color the objects individually.

And if you want a versatile method to reassign colours afterwards, create and apply different styles on your objects. Then modify the style to change at once the colour of all objects with the style.