python
Code

# Code
```python3 []
class Solution:
    def areaOfMaxDiagonal(self, dimensions: List[List[int]]) -> int:
        lookup = {}
        for l, w in dimensions:
            lookup[l, w] = l**2 + w**2
        l, w = max(lookup, key = lambda x: (lookup[x], x[0] * x[1]))
        return l * w
```
['Python3']