These "j" and "k" are actually X and Y, it's a bit easier to understand what's going on if they're named that way.