You may add or subtract two measured quantities if they have the same dimensions.
5 gallons + 2 gallons = 7 gallons
You may multiply or divide two measured quantities even if they do not have the same dimensions.
100 miles/2.0 hours = 50 miles per hour
Can you multiply two numbers with the SAME dimension?