I must choose one product from each category (A,C,E) and their price sum can't get over Z. Example
<tbody>
A
B
C
D
E
F
G
H
1
value1
price1
value2
price2
value3
price3
2
12
<tbody>
168,841
</tbody>
9
<tbody>
127,648
</tbody>
8
<tbody>
107,839
</tbody>
3
14
<tbody>...