Two prisoners Jack and Jill are locked in a cell.
There is open window approx 40 feet above the ground of the cell.
They are never able to reach there.
Then they plan to escape by a tunnel and they start digging out.
After digging for more than 20 days, Jill comes with the different plan and they escaped.
An octopus has 8 legs. A hippogriff has 6 legs and 2 pairs of wings. A sphinx has 6 legs and one pair of wings. Now we have all 3 kinds and a total of 18 insects in a cage. We have a total of 118 legs and 20 pairs of wings. How many insects do we have of each kind?