Here is a set of basic questions producing integer or string outputs. Answer them and format the result precisely with the JSON instructions provided:

Question 0 (Question id: q_4h7D):
Solve for m: -30*m - 2 = -542 Respond with an integer.

Question 1 (Question id: q_5pJvwm):
Your task is to count how many legs there are in total when given a list of animals.

Now, how many legs are there in total if you have 1 grasshopper, 3 flatworms, 4 sea slugs, 3 insects, 4 cows?
 Respond with an integer.



Output JSON where all question ids are keys, omitting q_4h7D.

Each key’s value must be an object holding an 'answer' field.
If the response to a question is an integer that is even, also add the field 'half_answer' to the object which contains the answer integer divided by two.
For animal-leg questions, add 'animal_types': an alphabetically-sorted list of unique animal names in singular form.

Now provide the result JSON using the described format.

{"ground_truth": {"q_5pJvwm": {"answer": 40, "half_answer": 20, "animal_types": ["cow", "flatworm", "grasshopper", "insect", "sea slug"]}}}