### Instruction: A young girl pours 23 blue beads and 16 yellow beads into a bowl. She divides the total into 3 equal parts, removes some beads from each part, and doubles the rest to have 6 beads in each part now. How many beads were removed from each part? Let's write a Python program to solve it.### Response: # calculate total number of beads
total_beads = 23 + 16

# divide into 3 equal parts
equal_parts = total_beads // 3

# calculate how many beads are left after doubling
beads_left_after_doubling = 6 // 2

# calculate how many beads were removed from each part
beads_removed = equal_parts - beads_left_after_doubling

print(beads_removed)