How do I select two objects in object mode?

I have made two objects in blender apart and I want to combine them, but whenever I try to select both in object mode turns orange and the other a darker orange.

That’s they way it is supposed to happen. One lighter color is the ‘active’ object or last selected.
Active objects play a part in different operations.
Now that both are selected, hit Ctrl + J.