Hello
Welcome to the forum and your new hobby!
There’s a handy knitting calculator online
https://www.worldknits.com/knitting-calculators
Scroll down for different calculators to find the relevant one you need, decreases.
And the result for your decrease row is
K7, (k2tog, k13) 2 times, k2tog, k12, k2tog, k6
Don’t be concerned about keeping in rib pattern during this transition row, this is likely to be the row between the rib and a stockinette section so it’s fine to all be knit.
If it’s not stockinette (knit one side and purl the other side) but another stitch pattern, it is likely still OK to knit this decrease row, but if you’re not sure then let us know the next row and we can advise on that.
I hope this helps. If you have any tricky bits do ask as this is a very supportive site, I was so glad to find it.