Don't know how to work this input stuff, but here we go.
It's just a normal equation, and you should aim on solving just like any equation.
x/sin(42) = (x+5)/sin(70)
x * sin(70)/sin(42) = x + 5
x * sin(70)/sin(42) - x = 5
x * (sin(70)/sin(42) - 1) = 5
x = 5 / (sin(70)/sin(42) - 1)
Hope it helped.