PoE is a mess in itself, and Mikrotik doesn't help with the confusing documentation they provide.
The hap Ax2 is documented as having PoE out:
PoE-out ports Ether 1
PoE out Passive PoE
Max out per port output (input 18-30 V) 600 mA
Max total out (A) 0.6 A
Total output current 0.6
Total output power 16.8W
What is written elsewhere is that the powering scheme is Mode B.
The Cap AX is documented as having PoE in:
PoE in 802.3af/at
PoE in input Voltage 18-57 V
which in itself is "wrong", no way that anything lower than 44V is 802.3a compatible.
Poe 802.3af mandates voltage 44-57V, 802.3at mandates voltage 50-57V, AND compatibility with BOTH Mode A and Mode B powering scheme.
With the standard power adapter of the hap Ax2 at the most you have is 24V (which is NOT 802.3af/at compatible).
Whether the Cap Ax can actually be powered with passive PoE at 24V is not written anywhere, it may work or it may not.
But there are reports hinting that it could work with the correct connection and PoE set to "forced on".
For some strange reasons, both the hap ax2 and the hap ax3 have "everything" on ether1 (both PoE-in and PoE-out on the same port that is normally "internet" or WAN), see:
viewtopic.php?t=196611
The hap Ax2 can instead definitely be powered with PoE coming from a hap Ax3 as both use passive PoE (in/out) at 18-30V, the issue might be that the standard 24V/1.2A power supply of hap Ax3 simply has not enough "juice" to power both devices and you need a beefier power supply.