def get_details(total_items: int) -> tuple:
    """Get input from the user and create lists of quantity and price of item purchased.

    Args:
        total_items (int): total items purchased

    Returns:
        tuple: tuple of quantity and price lists
    """
    quantity_list: list = []
    price_list: list = []
    for i in range(total_items):
        quantity = int(input(f"Enter the quantity of item {i+1}: "))
        price = int(input(f"Enter the price of item {i+1}: "))
        quantity_list.append(quantity)
        price_list.append(price)
    return (quantity_list, price_list)