Actually, this riddle is only technically correct in a country (such as Germany) where the comma is used to delineate a decimal point.
Also, a good riddle should contain the seeds of the solution contained within the question itself. Otherwise, this is just a mechanical trick.
R