My "rare" 92 MJ has an 87 D44 rear and a 97 XJ D30 front.
My other 92 has an 87 D35 rear and 98 TJ D30 front.
Also, although the ZJ and TJ are both low pinion, they are not the same.
The TJ has a shorter pinion shaft than the ZJ.
ZJ and CJ D30 gears are interchangeable. Not TJ's though.
But like said above they will all work in each other.
Just have to watch your drive shaft lengths.