this is not easy. check out this game from a Grandmaster versus a computer from 1978 ( much weaker than today's computers ) where this ending occured. It was a Draw as Browne could not win within 50 moves !
https://www.chessgames.com/perl/chessgame?gid=1480950
Pls help , this is so confusing