If this is just all LAN side traffic there's no NAT happening. And as long as you don't have firewall rules denying traffic it's just simple routing.
Based on that diagram on MX A (left MX) do you have static routes for 172.16.30.0/24 and 172.16.40.0/24 pointing to the next hop 192.168.10.1?
And you'd need the inverse on MX B. Statics for 172.16.20.0/24 & 172.16.20.0/24 pointing to the next hop 192.168.10.2.