def prefix_and_indent(prefix: str, text: str) -> str:
    """Add the prefix to the first line and indent all subsequent lines."""
    prefix_len = len(prefix)
    output = []
    for line_number, line in enumerate(text.split('\n')):
        if line_number == 0:
            output.append(prefix + line)
        else:
            output.append(" " * prefix_len + line)

    return '\n'.join(output)