Coded two equation, attempting a trickier one.