בכורות ב:ה · Bekhorot 2:5

רָחֵל שֶׁיָּלְדָה כְּמִין עֵז, וְעֵז שֶׁיָּלְדָה כְּמִין רָחֵל, פָּטוּר מִן הַבְּכוֹרָה. וְאִם יֵשׁ בּוֹ מִקְצָת סִימָנִין, חַיָּב:
A ewe that gave birth to a goat of sorts and a goat that gave birth to a ewe of sorts are exempt from the mitzva of the firstborn. And if the offspring has some of the characteristics of its mother, it is obligated in the mitzva of firstborn.

Word-by-word Breakdown (מילים ושרשים)

רָחֵל → A ewe [ר - ח - ל]שֶׁיָּלְדָה → that gave birth [י - ל - ד]כְּמִין → to a sort of [מ - י - ן]עֵז → goat [ע - י - ז]וְעֵז → and a goat [ע - י - ז]שֶׁיָּלְדָה → that gave birth [י - ל - ד]כְּמִין → to a sort of [מ - י - ן]רָחֵל → ewe [ר - ח - ל]פָּטוּר → is exempt [פ - ט - ר]מִן → from הַבְּכוֹרָה → the firstborn [ב - כ - ר]וְאִם → And if יֵשׁ → there is בּוֹ → in it מִקְצָת → some [ק - צ - ה]סִימָנִין → characteristics [ס - מ - ן]חַיָּב → obligated [ח - י - ב]