Pass information to another table with the same inherit
You can create trigger after update like this

CREATE TRIGGER trigger_name
    AFTER UPDATE ON Z
    FOR EACH ROW
    ... delete/update/insert to table A;
    ... delete/update/insert to table B;


I hope this helps

Reference
https://www.postgresql.org/docs/10/sql-createtrigger.html