Text this: Optimal Resource Allocation and Budgeting in Libraries