from typing import List
from typing import Tuple


def plotlines(
    optical_start: List[float], ratio_wanted: List[float]
) -> Tuple[List[float], List[float], List[float]]:
    """Draws the 'Distance Lines' for the main plot.

    Takes inputs of desired optical and radio limits of where the distance
    lines should be drawn on the plot.

    Args:
        optical_start: The optical flux values where the lines should start
            from.
        radio_wanted: The desired radio fluxes where the lines should end.

    Return:
        The optical points to plot along with the radio range to plot.
        Also returns the radio wanted (I can't remember why!).
    """
    radio_range = []
    radio_range.reverse()
    optical_points = []
    OFLUX = optical_start
    optical_points.append(OFLUX)
    this_radio = optical_points[0] * ratio_wanted
    radio_range.append(this_radio)

    while this_radio < 99999.:
        this_radio *= 10.
        NEWOFLUX = this_radio / ratio_wanted
        optical_points.append(NEWOFLUX)
        radio_range.append(this_radio)

    return optical_points, radio_range, ratio_wanted