Celsius to fahrenheit with tensorflowjs

Give the following temperatures, what would be the fahrenheit value for 42 celsius degrees?

Celsius -40-1008152238 42
Fahrenheit -401432465972100 ?

One way to find the relation between the values is using the line equation.

y = mx + b

m = 1.8

b = 32

SO

F = (1.8 * C) + 32

and here you can convert the values using the formula

Let's see how good will be the model predictions