I have a code from a machine that i use to make a variable (550-1023) to equal a better variable (90-180) I was wondering if it was possible to make it work (or at least a good alternative) for it. the machine code:

```
variable = Math.map(value, 550, 1023, 90, 180);
```

I just need to make it so that when one variable (value low:550 high:1023) equals another variable (variable low:90 high:180). so one variable is 550 while the other is 90, and one is 1023 and the other is 180.