andrew and ryan shared some chocolates. andrew gave away 1/4 of his chocolates. 1/4 of the given chocolates were taken by ryan. ryan then had the same number of chocolates as andrew. if andrew gave away 12 chocolates, how many chocolates did each of them have at first?