There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

As it stands you cannot reverse them, you have to do some groundwork first.

That is, given R, to find X you must first replace 'Y' with what it corresponds to for X

Simple example:

R = 2X + 3Y

=> Y =

(R-2X) / 3Hence:

R = 2X +

(R-2X) / 3Once you reach that state, since you know the value of R and you want to find X, you then go about making X the subject of the equation

Continuing from the example above:

R = 2X + (R-2X) / 3

=> 3R = 6X + (R-2X)

=> 2R = 4X

=> X = R / 2

You do the SAME process for Y.

Thus given 'R' (range) you can find X and Y

You repeat the same steps for H (heading).