Python | Math solution | 1 line
python\nclass Solution:\n    def getSum(self, a: int, b: int) -> int:\n        return int(math.log2(pow(2,a)*pow(2,b)))\n
```python\nclass Solution:\n    def getSum(self, a: int, b: int) -> int:\n        return int(math.log2(pow(2,a)*pow(2,b)))\n```
['Math', 'Python']