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_RHsB):
Find the value of r in the equation: 40*r = 120 Respond with an integer.

Question 1 (Question id: q_UoKqM0Br):
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 2 humans, 4 horses, 4 sheeps, 1 elephant?
 Respond with an integer.

Question 2 (Question id: q_4FIYOWMv):
Determine the value of i that satisfies: i - 12 = 4 Respond with an integer.

Question 3 (Question id: q_n2YLAO):
Determine the value of j that satisfies: -20*j - 7 = -67 Respond with an integer.



Return a JSON with each question id as a key.

Each key’s value must be an object holding an 'answer' field.
Include an 'answer_type' field (value 'string' or 'integer') for every answer object.
For even integer answers, include 'half_answer' equal to answer ÷ 2.
If the response to a question is a string, add a 'first_char' field containing its first character.

Now provide the result JSON using the described format.

{"ground_truth": {"q_RHsB": {"answer": 3, "answer_type": "integer"}, "q_UoKqM0Br": {"answer": 40, "answer_type": "integer", "half_answer": 20}, "q_4FIYOWMv": {"answer": 16, "answer_type": "integer", "half_answer": 8}, "q_n2YLAO": {"answer": 3, "answer_type": "integer"}}}