The question consists of statements P and Q. They may look factually absurd. You have to ignore this absurdity and concentrate only upon the logic involved therein.
P : Jackals lives in forests. Cities are in forests. Therefore jackals live in cities.
Q : Some tables are grass. All stools are grass. Therefore all tables are stools.