Answer: B. 135
Explanation:
Given : Number of representatives from each company = 3
Number of companies =6
Total number of people there :

The total number of ways that 18 people shake hands with each other :-

The number of ways that representatives shake hands with people from their own company :-

If the representatives did not shake hands with people from their own company , then the total number of ways for handshake :-

Hence, the total number of handshakes will be 135.