Answer:
16 in first and 8 in second
Step-by-step explanation:
Let the number of apples be x in the first box then the number in the second box will be 24-x
if we half the number of apples in first box we get ![\frac{x}{2}](https://tex.z-dn.net/?f=%5Cfrac%7Bx%7D%7B2%7D)
And we add 4 apples in the second box we get ![24-x+4=28-x](https://tex.z-dn.net/?f=24-x%2B4%3D28-x)
Since the apples in the two boxes were 20 we get
![\frac{x}{2}+28-x=20](https://tex.z-dn.net/?f=%5Cfrac%7Bx%7D%7B2%7D%2B28-x%3D20)
![x+56-2x=40](https://tex.z-dn.net/?f=x%2B56-2x%3D40)
After simplification we get:
x=16
Hence, number of apples in first box were x that is 16
And number of apples in second box were 24-x that is 24-16 is 8