from typing import Tuple


def size2shape(size: int) -> Tuple[int, int]:
    """convert a plate size (number of wells) to shape (y, x)"""
    assert size in [384, 1536]
    return (16, 24) if size == 384 else (32, 48)