The translation you received from Google is correct. Algebraic expressions in Arabic, as well as mathematical operations and fractions (but NOT decimals) are written to reflect the order in which they need to be read. Try not to think of it as going from right to left but as: what needs to read first? In the example above, having the س read first (is on the right) ensures that it is read as the numerator. The ص is then read as the denominator.
Here’s an example with mathematical operations: 5 - 4 (keep in mind the answer is 1) when written in Arabic will need be read from right to left, so it would be ٥-٤. We need to read the 5 first to make sure that the answer is 1. Otherwise, if the 5 is written on the left side, it would be read second and so our answer would be a -1 instead of 1. Hope this helps.