Detect when a given entity is above/below another entity

I have some custom mobs that are passive mobs with scale 0.1 husks riding them to give them hostile AI. What I am trying to do is make it so that if the husk or mob is without the other it will die. I was initially doing this with distance, but it doesn't work the best. I want something efficient as it ideally runs every tick.
Continue to help post