Suppose $P\neq NP$. The following problem can be solved in polynomial time?
- Given natural number $n$ and positive real numbers $a_1,a_2,\dots,a_n$ and $b_1,b_2,\dots,b_n$. The goal is to find $I\subseteq\{1,2,\dots,n\}$ such that $\sum_{i\in I}b_i$ maximized and $\sum_{i\in I}a_i\leq 5$.
But I have no idea about it. Any help will be appreciated and I prefer to get some hints, not the complete solution.