Translate the given calculations into code form. Each line of code MUST follow the format specified below:
output_variable = [description of operation](input_variable_1, ..., input_variable_n)

Q: You can buy 4 apples or 1 watermelon for the same price. You bought 36 fruits evenly split between oranges, apples and watermelons, and the price of 1 orange is $0.50. How much does 1 apple cost if your total bill was $66?

A: If 36 fruits were evenly split between 3 types of fruits, then I bought 36/3 = <<36/3=12>>12 units of each 
fruit
If 1 orange costs $0.50 then 12 oranges will cost $0.50 * 12 = $<<0.5*12=6>>6
If my total bill was $66 and I spent $6 on oranges then I spent $66 - $6 = $<<66-6=60>>60 on the other 2 fruit types.
Assuming the price of watermelon is W, and knowing that you can buy 4 apples for the same price and that the price 
of one apple is A, then 1W=4A
If we know we bought 12 watermelons and 12 apples for $60, then we know that $60 = 12W + 12A
Knowing that 1W=4A, then we can convert the above to $60 = 12(4A) + 12A
$60 = 48A + 12A
$60 = <<60=60>>60A
Then we know the price of one apple (A) is $60/60= $<<60/60=1>>1
#### 1

Code:
total_fruits = 36
types_of_fruits = 3
price_per_orange = 0.50
total_oranges = 12
total_bill = 66
equivalent_apples_for_watermelon = 4
total_apples_and_watermelons = 12
fruits_per_type = [divide](total_fruits, types_of_fruits)
cost_of_oranges = [multiply](total_oranges, price_per_orange)
remaining_budget = [minus](total_bill, cost_of_oranges)
price_per_apple = [construct and solve an equation](total_apples_and_watermelons, equivalent_apples_for_watermelon, remaining_budget)

Q: Bella has two times as many marbles as frisbees. She also has 20 more frisbees than deck cards. If she buys 2/5 times more of each item, what would be the total number of the items she will have if she currently has 60 marbles?

A: When Bella buys 2/5 times more marbles, she'll have increased the number of marbles by 2/5*60 = <<2/5*60=24>>24
The total number of marbles she'll have is 60+24 = <<60+24=84>>84
If Bella currently has 60 marbles, and she has two times as many marbles as frisbees, she has 60/2 = <<60/2=30>>30 
frisbees.
If Bella buys 2/5 times more frisbees, she'll have 2/5*30 = <<2/5*30=12>>12 more frisbees.
The total number of frisbees she'll have will increase to 30+12 = <<30+12=42>>42
Bella also has 20 more frisbees than deck cards, meaning she has 30-20 = <<20-10=10>>10 deck cards
If she buys 2/5 times more deck cards, she'll have 2/5*10 = <<2/5*10=4>>4 more deck cards.
The total number of deck cards she'll have is 10+4 = <<10+4=14>>14
Together, Bella will have a total of 14+42+84 = <<14+42+84=140>>140 items
#### 140

Code:
current_marbles = 60
increase_factor = 2/5
marble_to_frisbee_ratio = 2
frisbee_to_card_difference = 20
additional_marbles = [multiply](current_marbles, increase_factor)
total_marbles = [add](current_marbles, additional_marbles)
current_frisbees = [divide](current_marbles, marble_to_frisbee_ratio)
additional_frisbees = [multiply](current_frisbees, increase_factor)
total_frisbees = [add](current_frisbees, additional_frisbees)
current_deck_cards = [minus](current_frisbees, frisbee_to_card_difference)
additional_deck_cards = [multiply](current_deck_cards, increase_factor)
total_deck_cards = [add](current_deck_cards, additional_deck_cards)
total_items = [sum](total_marbles, total_frisbees, total_deck_cards)

Q: Susy goes to a large school with 800 students, while Sarah goes to a smaller school with only 300 students.  At the start of the school year, Susy had 100 social media followers.  She gained 40 new followers in the first week of the school year, half that in the second week, and half of that in the third week.  Sarah only had 50 social media followers at the start of the year, but she gained 90 new followers the first week, a third of that in the second week, and a third of that in the third week.  After three weeks, how many social media followers did the girl with the most total followers have?

A: After one week, Susy has 100+40 = <<100+40=140>>140 followers.
In the second week, Susy gains 40/2 = <<40/2=20>>20 new followers.
In the third week, Susy gains 20/2 = <<20/2=10>>10 new followers.
In total, Susy finishes the three weeks with 140+20+10 = <<140+20+10=170>>170 total followers.
After one week, Sarah has 50+90 = <<50+90=140>>140 followers.
After the second week, Sarah gains 90/3 = <<90/3=30>>30 followers.
After the third week, Sarah gains 30/3 = <<30/3=10>>10 followers.
So, Sarah finishes the three weeks with 140+30+10 = <<140+30+10=180>>180 total followers.
Thus, Sarah is the girl with the most total followers with a total of 180.
#### 180

Code:
susy_start_followers = 100
susy_week1_gain = 40
susy_school_population = 800
sarah_start_followers = 50
sarah_week1_gain = 90
sarah_school_population = 300
susy_week2_gain = [divide](susy_week1_gain, 2)
susy_week3_gain = [divide](susy_week2_gain, 2)
susy_total_followers = [sum](susy_start_followers, susy_week1_gain, susy_week2_gain, susy_week3_gain)
sarah_week2_gain = [divide](sarah_week1_gain, 3)
sarah_week3_gain = [divide](sarah_week2_gain, 3)
sarah_total_followers = [sum](sarah_start_followers, sarah_week1_gain, sarah_week2_gain, sarah_week3_gain)
most_followers = [max](susy_total_followers, sarah_total_followers)

Q: Mark's basketball team scores 25 2 pointers, 8 3 pointers and 10 free throws.  Their opponents score double the 2 pointers but half the 3 pointers and free throws.  What's the total number of points scored by both teams 
added together?

A: Mark's team scores 25 2 pointers, meaning they scored 25*2= <<25*2=50>>50 points in 2 pointers.
His team also scores 6 3 pointers, meaning they scored 8*3= 24 points in 3 pointers
They scored 10 free throws, and free throws count as one point so they scored 10*1=<<10*1=10>>10 points in free throws.
All together his team scored 50+24+10= <<50+24+10=84>>84 points
Mark's opponents scored double his team's number of 2 pointers, meaning they scored 50*2=<<50*2=100>>100 points in 
2 pointers.
His opponents scored half his team's number of 3 pointers, meaning they scored 24/2= <<24/2=12>>12 points in 3 pointers.
They also scored half Mark's team's points in free throws, meaning they scored 10/2=<<10/2=5>>5 points in free throws.
All together Mark's opponents scored 100+12+5=<<100+12+5=117>>117 points
The total score for the game is both team's scores added together, so it is 84+117=<<84+117=201>>201 points        
#### 201

Code:
two_pointers_mark_team = 25
three_pointers_mark_team = 8
free_throws_mark_team = 10
two_pointer_value = 2
three_pointer_value = 3
free_throw_value = 1
opponents_two_pointer_multiplier = 2
opponents_three_pointer_multiplier = 0.5
opponents_free_throw_multiplier = 0.5
mark_team_two_pointers_points = [multiply](two_pointers_mark_team, two_pointer_value)
mark_team_three_pointers_points = [multiply](three_pointers_mark_team, three_pointer_value)
mark_team_free_throws_points = [multiply](free_throws_mark_team, free_throw_value)
mark_team_total_points = [sum](mark_team_two_pointers_points, mark_team_three_pointers_points, mark_team_free_throws_points)
opponents_two_pointers_points = [multiply](mark_team_two_pointers_points, opponents_two_pointer_multiplier)
opponents_three_pointers_points = [multiply](mark_team_three_pointers_points, opponents_three_pointer_multiplier)
opponents_free_throws_points = [multiply](mark_team_free_throws_points, opponents_free_throw_multiplier)
opponents_total_points = [sum](opponents_two_pointers_points, opponents_three_pointers_points, opponents_free_throws_points)
total_points_scored = [add](mark_team_total_points, opponents_total_points)

Q: The total average age of three friends is 40. Jared is ten years older than Hakimi, and Molly's age is 30. How old is Hakimi?

A: The total age for the three friends is 40*3 = <<40*3=120>>120
If Molly's age is 30, then Jared and Hakimi have a total age of 120-30 = 90.
Let's say the age of Hakimi is x.
Since Jared is 10 years older than Hakimi, Jared is x+10 years old.
Jared and Hakimi's total age is x+(x+10) = 90
This translates to 2x=90-10
2x=80
Hakimi's age is x=80/2
This gives us x=<<40=40>>40, which is Hamkimi's age.
#### 40

Code: total_average_age = 40
number_of_friends = 3
molly_age = 30
jared_hakimi_age_difference = 10
total_age = [multiply](total_average_age, number_of_friends)
total_age_excluding_molly = [minus](total_age, molly_age)
hakimi_age = [construct and solve an equation](total_age_excluding_molly, jared_hakimi_age_difference)

Q: Together 3 friends watched 411 short videos. Kelsey watched 43 more than Ekon. Ekon watched 17 less than 
Uma. How many videos did Kelsey watch?

A: Let U = the number of videos Uma watched
Ekon = U - 17
Kelsey = (U - 17) + 43 = U + <<(-17)+43=26>>26
U + U - 17 + U + 26 = 411
3U + 9 = 411
3U = 402
U = <<134=134>>134
Kelsey = 134 + 26 = <<134+26=160>>160 videos
Kelsey watched 160 videos.
#### 160

Code:
# Initializations for the total number of videos and relationships
total_videos = 411
ekon_to_uma_difference = 17
kelsey_to_ekon_difference = 43

# Calculations for Uma's videos
# Since Ekon = U - 17 and Kelsey = Ekon + 43 = U + 26
# Solving for U in 3U + 9 = 411
uma_videos = [construct and solve an equation](total_videos, ekon_to_uma_difference, kelsey_to_ekon_difference)

# Calculations for Kelsey's videos
kelsey_videos = [add](uma_videos, kelsey_to_ekon_difference)

Q: Sam bought a dozen boxes, each with 30 highlighter pens inside, for $10 each box. He rearranged five of these boxes into packages of six highlighters each and sold them for $3 per package. He sold the rest of the highlighters separately at the rate of three pens for $2. How much profit did he make in total, in dollars?

A: Sam bought a dozen (12) boxes, each containing 30 highlighter pens, for $10 each.
The cost for all boxes:
12 boxes × $10/box = $120
From five of these boxes, he rearranged the highlighters into packages of six:
5 boxes × 30 highlighters/box = 150 highlighters
150 highlighters ÷ 6 highlighters/package = 25 packages
He sold these packages for $3 each:
25 packages × $3/package = $75
The rest of the highlighters, from the remaining seven boxes:
7 boxes × 30 highlighters/box = 210 highlighters
He sold these at a rate of three pens for $2:
210 highlighters ÷ 3 highlighters = 70 transactions
70 transactions × $2/transaction = $140
Total sales:
$75 + $140 = $215
Profit:
$215 − $120 = $95
Sam made a total profit of $95.
#### 95

Code: number_of_boxes_bought = 12
highlighters_per_box = 30
cost_per_box = 10
packages_from_five_boxes = 5
highlighters_per_package = 6
price_per_package = 3
rate_of_separate_highlighters = 3
price_for_rate_of_separate_highlighters = 2
total_cost = [multiply](number_of_boxes_bought, cost_per_box)
total_highlighters_in_five_boxes = [multiply](packages_from_five_boxes, highlighters_per_box)
number_of_packages = [divide](total_highlighters_in_five_boxes, highlighters_per_package)
revenue_from_packages = [multiply](number_of_packages, price_per_package)
remaining_boxes = [minus](number_of_boxes_bought, packages_from_five_boxes)
total_highlighters_in_seven_boxes = [multiply](remaining_boxes, highlighters_per_box)
transactions_for_separate_highlighters = [divide](total_highlighters_in_seven_boxes, rate_of_separate_highlighters)
revenue_from_separate_highlighters = [multiply](transactions_for_separate_highlighters, price_for_rate_of_separate_highlighters)
total_revenue = [add](revenue_from_packages, revenue_from_separate_highlighters)
profit = [minus](total_revenue, total_cost)

Q: Megan pays $16 for a shirt that costs $22 before sales. What is the amount of the discount?

A: Let x be the amount of the discount.
We have, 22 - x = $16
We change the writing of the equation:
22 - x + x = 16 + x
So, 22 = 16 + x
We then Remove 16 from both sides:
22 - 16 = 16 + x - 16
So, 22 - 16 = x
So, the amount of the discount is x = $<<6=6>>6.
#### 6

Code:
original_price = 22
final_price = 16
discount_amount = [minus](original_price, final_price)

Q: {{question}}

A: 