2-giej
drugiej - 2nd (feminine, singular, dative)
2-ma
dwiema, dwoma - two (instrumental)
4-ch
czterech - 4 (masculine, accusative)
7-em
no idea
12-tej
dwunastej - 12th (feminine, singular, locative)
17-tym
siedemnastym - 17th (masculine, instrumental)
These are simply numerals with grammatical suffixes. In fact they shouldn't be spelled tat way, the official version is that you should just write a number and a dot but sometimes people still spell it that way.
(Yeah, we inflect numerals by case, gender and, for ordinals, even number)