Answer:
Greatest number of newspaper ads = 59
Greatest number of television ads = 23
Step-by-step explanation:
It is given that we should buy at least 5 newspapers for every 3 television ads.
So, after purchasing 3 television ads, we can buy any number of television ads but the number should be greater than 5.
Since, the maximum is 62, we can buy 59 newspaper ads. (Note that we have already bought 3 television ads).
For every 3 television ads, we should buy 5 newspaper ads. So,
For the purchase of 3 television ads, we should buy the minimum of 5 newspaper ads.
For the purchase of 2(3) television ads, we should buy the minimum of 2(5) newspaper ads.
For the purchase of 3(3) television ads, we should buy the minimum of 3(5) newspaper ads.
...
...
For the purchase of 7(3) = 21 television ads, we should buy the minimum of 7(5) = 35 newspaper ads.
So, totally 21+35 = 56 ads.
For the remaining 6 ads, if we buy 3 television ads, we should buy 5 newspaper ads.
So, we can buy 2 television ads and 4 newspaper ads.
Hence, we can buy the maximum of 21+2 = 23 television ads.