Given the recipe for S’mores
2Gc + 1M + 4Cp = 1Sm

How many s’mores can be made from
17 Gc, 22M, and 44Cp?

Please if you know how to do it please tell me, I need to understand.