Three artists each painted 24 dogs and 15 frogs . Two other artists each painted the same number of frogs and twice as many dogs . How many animals did the five paint in​ all?