How to SUM Net Value considering only cases that go through Activity A and Activity B

Could someone please help me with the correct formula. Kind of new here.
Thank you.
Net value: “VBAP”.“NETWR_CONVERTED”