How to connect akai mpk midi controller to ur 22 mk2?

The akai midi controller has a usb midi cable, and the ur 22 mk2 has two 5 pin midi ports on its back panel. How can I connect them? I will connect ur 22 mk2 to my ipad, so it seems that connecting these two is the only way to use the midi controller. Thank you for your help.