Hi Shanid,
Is there any particular reason this cannot be managed within a single project? Why A is having a revenue and B is having a cost? Ideally you should match cost and revenue on a single account assignment object to have transparency on profitability.
There are multiple options to transfer cost/revenue between projects, normally is either through a settlement process or through FI postings.
Regards,
Paulo