in a competition 3/4 of the number of team A medals was equal to 2/3 of the number of team B medals. team A had 5 fewer medals than team B. How many medals did team A have