For water 1 gram = 1 ml.
This means 45 grams are equal to 45 ml's.
Neither one is greater than the other one as they are equal.
The problem doesn't state what is being measured, so the answer could be different depending on the density of the product being measured.
The second equation, its setup is correct
This is even because they all can be divided if it was odd you would not be able to decide them