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

Question 1 (Question id: q_ys4f):
Calculate -4 - -5 + 3.

Question 2 (Question id: q_hVPY):
Determine the value of w that satisfies: 13 - 17*w = -259 Respond with an integer.



Your output must be a JSON mapping every question id to its answer info.

The value for each key should be an object that contains the answer in the field 'answer'.
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 string answers, include 'first_char' with the answer’s initial letter.
For last-character tasks, provide 'original_string' alongside the answer.

Add a top-level 'global_metadata' field that records overall stats:
• num_questions_asked – total number of questions originally shown.

Now provide the result JSON using the described format.

{"ground_truth": {"q_LXh5x4": {"answer": 3}, "q_ys4f": {"answer": 4, "half_answer": 2}, "q_hVPY": {"answer": 16, "half_answer": 8}, "global_metadata": {"num_questions_asked": 3}}}