Hello, I am Keith, one of the experts on Just Answer, and pleased to be able to help you with your question.
One company can acquire the other then you will have a company group. Once the companies are grouped then tax losses can be carried up down and sideways to relieve other liabilities within the group. No special forms are required for HMRC or for Companies House although the latter organisation will have to be informed when the next Annual Return is made.
There is an alternative merely for the company with a profit to be billed by the company with a loss for services which will adjust the profitability of each company.
I do hope that you have found my reply of assistance.
Thank you for your support.