10≤x≤20 and 8≤x≤17 means 10≤x≤17
y≤20
x+y≤20
Maximize z=12x+15y Note that y bring in higher values than x's so we want the most y's and the least x's
Clearly the least x can be is 10.
If x+y≤20 and x=10, then we would like y to be as great as it it can be. So choose y=10. Now check to see if this violates y≤20 and it does not. So x=10 and y=10.
Exactly where was the trouble with you doing this problem?