The agent could charge 10Kg excess fees since one of the passengers will be within their limit and the other will be over by 10Kg
There is no entitlement to be able to pool allowances
You may well get away with doing it, but you would be safer to ensure that neither passenger exceeds 30Kg