Let's assume
Amy has x peaches
John has y peaches
Amy and John shared 150 peaches
so, we get

now, we can solve for y

we are given
(1/3) of what Amy has equals to (1/2) of what John has

now, we can plug y

we can cross multiply
and we get




now, we can find y


so,
Amy has 90 peaches
John has 60 peaches..........Answer