```python
from typing import *
from collections.abc import *

def hour_rate(rate: int) -> int:
    return rate


def week_pay(hours: int, rate: int) -> int:
    """Pay for a week, with overtime beyond forty hours."""
    if hours > 40:
        return (hours - 40) * hour_rate(1.5 * rate)
    return hours * hour_rate(rate)
```