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_9gmb0):
Determine the value of y that satisfies: 342*y - 4 = 2732 Respond with an integer.

Question 1 (Question id: q_erlB73h):
Your job is to return the last character of a string as a string. For example, the last char of "hello" is "o". Return the last character of the following string: "extinction"

Question 2 (Question id: q_wt0ut):
Solve for k: 27*k - 10 = 314 Respond with an integer.

Question 3 (Question id: q_aWxMu):
How many times does the letter "c" appear in the text: "the Americans"? Respond with an integer.

Question 4 (Question id: q_lzTY2):
Your job is to return the last character of a string as a string. For example, the last char of "hello" is "o". Return the last character of the following string: "just"

Question 5 (Question id: q_bbzgk):
Your job is to return the last character of a string as a string. For example, the last char of "hello" is "o". Return the last character of the following string: "also"

Question 6 (Question id: q_Jy7TKkuD):
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 3 snakes, 3 starfishs, 1 shrimp?
 Respond with an integer.

Question 7 (Question id: q_dZtiBc):
Your job is to return the last character of a string as a string. For example, the last char of "hello" is "o". Return the last character of the following string: "behavior"

Question 8 (Question id: q_71Wpmp):
Find the value of l in the equation: l + 6 = 19 Respond with an integer.

Question 9 (Question id: q_z4hJ):
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 4 starfishs, 3 snakes, 3 cats?
 Respond with an integer.

Question 10 (Question id: q_aPUzzY):
Calculate 4 + 2 - 3.

Question 11 (Question id: q_qvuKvu3):
How many times does the letter "t" appear in the text: "sitting with"? Respond with an integer.

Question 12 (Question id: q_T03qW4J):
How many times does the letter "a" appear in the text: "a campaign on"? Respond with an integer.

Question 13 (Question id: q_miXe4):
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 4 grasshoppers, 1 chicken, 1 dog, 1 jellyfish, 4 flatworms?
 Respond with an integer.

Question 14 (Question id: q_nKtLqiC3):
How many times does the letter "c" appear in the text: "company of men"? Respond with an integer.



Create a JSON object keyed by every question id except q_erlB73h, q_wt0ut, q_nKtLqiC3.

The value for each key should be an object that contains the answer in the field 'answer'. Additionally, if the task is about counting legs of animals or counting letters in a string, add the task_type field with value 'leg_counting' or 'letter_counting', respectively.
For even integer answers, include 'half_answer' equal to answer ÷ 2.

Now provide the result JSON using the described format.

{"ground_truth": {"q_T03qW4J": {"answer": 3, "task_type": "letter_counting"}, "q_miXe4": {"answer": 30, "task_type": "leg_counting", "half_answer": 15}, "q_z4hJ": {"answer": 32, "task_type": "leg_counting", "half_answer": 16}, "q_aWxMu": {"answer": 1, "task_type": "letter_counting"}, "q_71Wpmp": {"answer": 13}, "q_Jy7TKkuD": {"answer": 25, "task_type": "leg_counting"}, "q_9gmb0": {"answer": 8, "half_answer": 4}, "q_aPUzzY": {"answer": 3}, "q_bbzgk": {"answer": "o"}, "q_lzTY2": {"answer": "t"}, "q_dZtiBc": {"answer": "r"}, "q_qvuKvu3": {"answer": 3, "task_type": "letter_counting"}}}