xlsForms - Store calculation in temporary variable and call value in next questions

I'm trying to do the following use case:-

Question 1:

Do you have an apple?
Option 1: Yes
Option 2: No

If yes, then show the following questions:-

Question 1 (a):
What is the weight of an apple?
Integer

Question 1 (b):
What is the false weight of an apple?
Integer

Question 1 (c)
Calculation = Q1(a) - Q1(c)

Question 2:

Do you have a banana?
Option 1: Yes
Option 2: No

If yes, then show the following questions:-

Question 2 (a):
What is the weight of a banana?
Integer <value should be Q1(c)>

Question 2 (b):
What is the false weight of a banana?
Integer

Question 2 (c)
Calculation = Q2(a) - Q2(c)

Question 3:

Do you have an orange?
Option 1: Yes
Option 2: No

If no, then skip to question 4

Question 4:

Do you have mangoes?
Option 1: Yes
Option 2: No

If yes, then show the following questions:-

Question 4 (a):
What is the weight of mangoes?
Integer <value should be Q2(c)>

Question 4 (b):
What is the false weight of mangoes?
Integer

Question 4 (c)
Calculation = Q4(a) - Q4(c)

Hi @rameshbhalla81
it would be something like:
fruitsTest-export.xlsx (8.5 KB)
It's just a part of that form to show you how such forms are structured.
You can find more here:

https://docs.getodk.org/form-question-types/