1.
x - P10 capsules, y - P18 capsules
x+y≤30
10x+18y≤340⟹5x+9y≤170
Objective: max y

We have three points for considering:
(30,0),\ (0,170/9),\and:
x=30−y⟹5⋅(30−y)+9y=170
4y=20⟹y=5, x=25 ,
and the third point: (25,5)
max y=18.9
Answer: 18
2.
One correct answer: Thursday (yesterday) is before Friday (today).
Answer: Friday