def calc_object_image_distances(f, m):
    """

    Args:
        f: focal length
        m: magnification

    Returns:
        u: object distance
        v: image distance
    """
    u = f*(1 - 1/m)
    v = -m*u
    return u, v