Respuesta :

Let the total number of medals be t.  Then (1/3)t=8 and t=24

Also:  (1/2)t=12, so that t = 24.

There were a total of 24 medals.