Given Cost of lumber and a list of lengths needed for a project, find the lowest cost