Goods & Construction
Create a function named whatToBuy that receives four arguments: -First argument is a list of numbers that indicate the price of a construction item -Second argument is a list of numbers that indicates the quantity of each construction item -Third argument is a number indicating the total price allowed for each item -Fourth argument is a list of construction names. The function calculates, for each item, the total price required to buy it. The total price for each item is calculated like this: (quantity * price) / (average_quantity * average_price) The function will return a list of two elements: The first element is a sorted list of all the construction names whose total price is smaller than the restriction (third argument). The second element is a number, which indicates how many construction items removed.