The table shows the profit of the companies if no bonuses were issued.

After working out what 2.1% of Company 1's profit and 4.9% of Company 2's profit is, subtract them from the combined profit (add the profits of company 1 and 2 from the table) they would have recieved if it wasn't for the bonuses.

This number is the new combined profit for both company, with the bonuses taken into account.

Now

Profit = Revenue - Costs

Substitute the new combined profit and the combined revenue (700,000, given), and you'll be able to determine the combined cost incurred.