|-394| = 394 is the answer since all negative absolute values turn positive
Find the slopes of the segments and then use the decimal form of the answer to figure out the shortest part of the triangle. ( p.s. the triangle is not drawn to scale, so you can't use the graph to determine the shortest part)
I'm assuming this means 3g+45=4g=84.
So, just move like numbers near each other. This way, you get 4g-3g=45-84, which means g= -39.