martha and mary had 375 jelly beans in all. after mary ate 24 jelly beans and martha ate 1/7 of her jelly beans, they each had the same number of jelly beans left. how many jelly beans did each girl have at first?