Questions & Answers about Moj brat pije kavu s omiljenim kolegom.
Why does the adjective omiljenim have a masculine ending when the noun kolegom looks like it has a feminine ending?
The noun kolega (colleague) is tricky! It ends in -a and declines like a feminine noun (which is why it becomes kolegom in the instrumental case, just like žena becomes ženom). However, it is a masculine noun because it refers to a male person. Adjectives must match the true gender of the noun, so we use the regular masculine instrumental ending -im to make omiljenim.
How would the adjective change if he were drinking coffee with a female colleague instead?
A female colleague is kolegica, which is a regular feminine noun. In the instrumental case, both the adjective and the noun would take the feminine ending -om. The phrase would become s omiljenom kolegicom.
Why is the preposition s used here instead of sa?
Both mean "with", but s is the default. You only need to use sa if the following word starts with a tricky sound like s, š, z, or ž, which would make a lone s hard to pronounce. Since the next word here is omiljenim (starting with a vowel), the short form s is perfect.
Just as a quick review, why is it kavu and not kava?