Another that is very similar is "What ratio for 2 stroke oil should I run in my dirt bike?"
Basically they are asking the same thing.
The first answer I give is, "What does your manual say?".
While 40:1 is generally considered safe, you should always use whatever your bike manufacture recommends.
I have used 40:1 for several decades with no problems.
Many companies such as LA sleeve recommend 32:1 only for break in.
So, what does 40:1 mean?
What this means is 40 parts of gasoline to 1 part of 2 stroke oil.
It does not matter what unit of measurement you want to use, Gallons, quarts, liters, or ounces, as long as you use the same unit of measurement for both the oil and the gas
Since we are in the USA we will use ounces.
Let's break this down.
There are 128 ounces per 1 gallon.
If we take 128 ounces and divide by 40 we get 3.2 ounces.
So:
3.2 ounces of 2 stroke oil per 1 gallon of gasoline = 40:1
6.4 ounces of 2 stroke oil per 2 gallons of gasoline = 40:1
9.6 ounces of 2 stroke oil per 3 gallons of gasoline = 40:1
12.8 ounces of 2 stroke oil per 4 gallons of gasoline = 40:1
16 ounces of 2 stroke oil per 5 gallons of gasoline = 40:1

Lets say that we we want to use 32:1 for breaking in a new engine.
If we take 128 ounces and divide by 32 we get 4 ounces.
So:
4 ounces of 2 stroke oil per 1 gallon of gasoline = 32:1
8 ounces of 2 stroke oil per 2 gallons of gasoline = 32:1
12 ounces of 2 stroke oil per 3 gallons of gasoline = 32:1
16 ounces of 2 stroke oil per 4 gallons of gasoline = 32:1
20 ounces of 2 stroke oil per 5 gallons of gasoline = 32:1

Now lets say that you like living on the edge and want to run 50:1
If we take 128 ounces and divide by 50 we get 2.56 ounces.
So:
2.56 ounces of 2 stroke oil per 1 gallon of gasoline = 50:1
5.12 ounces of 2 stroke oil per 2 gallons of gasoline = 50:1
7.68 ounces of 2 stroke oil per 3 gallons of gasoline = 50:1
10.24 ounces of 2 stroke oil per 4 gallons of gasoline = 50:1
12.8 ounces of 2 stroke oil per 5 gallons of gasoline = 50:1
15.36 ounces of 2 stroke oil per 6 gallons of gasoline = 50:1

Remember, ALWAYS consult with your bike manufacture and use what they recommend.
If you have any question or would like to add further information, feel free.
Thanks!
SB